Using Custom Preloaders

I am having  a problem using the custom preloader that Phil (Spectre) has posted.  I created the swf file and call it from the logo area, however all I get is a white empty frame of an Articulate course.  I know it must be something small that I'm missing, please, please help.

My preloader code looks like this:

PreloadQue = function ()
{
    this.container = new XML();
    this.que = new Array();
    this.handler = "foo";
    this.receiver = this;
    this.interval = null;
};
PreloadQue.prototype.preloadNextItem = function ()
{
    this.container.load(this.que.shift());
    this.interval = setInterval(this, "onItemData", 100);
};
PreloadQue.prototype.onItemData = function ()
{
    var _loc2 = this.container.getBytesLoaded() / this.container.getBytesTotal() * 100;
    if (_loc2 == 100)
    {
        clearInterval(this.interval);
        if (this.que.length > 0)
        {
            this.preloadNextItem();
        }
        else
        {
            this.receiver[this.handler]();
        } // end if
    } // end else if
};
PreloadQue.prototype.addItem = function (sUrl)
{
    this.que.push(sUrl);
};
PreloadQue.prototype.setPreloadHandler = function (sHandler, oReceiver)
{
    this.handler = sHandler;
    this.receiver = oReceiver;
};
PreloadQue.prototype.start = function ()
{
    this.preloadNextItem();
};
onPreloadComplete = function ()
{
    trace ("DONE");
};
var preloader = new PreloadQue(this);
preloader.setPreloadHandler("onPreloadComplete", this);

//THIS IS WHAT YOU CHANGE
//ONE LINE PER FILE
//ADD AS MANY LINES AS YOU LIKE
preloader.addItem("data/swf/fm_openingMovie.flv");
preloader.addItem("data/Assignments.swf");
preloader.addItem("data/CourseNavigation2.swf");
preloader.addItem("data/IncreaseFont.swf");
preloader.addItem("data/Journals600x375.swf");
preloader.addItem("data/NavigatingToPrevious.swf");
preloader.addItem("data/ShowHideCourseMenu480x360.swf");
preloader.start();

Thanks in advance.

1 Reply