Preloader issues

Hiya

In the process of doing my new site, have everything else working fine except my preloader.

For some unknown reason, I just can’t get it to work.

I’ve been advised that I need the preloader as an external .swf, which in turn loads up the mc.

myBytesLoaded = this.container.getBytesLoaded();
myBytesTotal = this.container.getBytesTotal();
//trace(myBytesLoaded)
//trace(myBytesTotal)
if (myBytesLoaded >= myBytesTotal && myBytesTotal > 10) {
    stop();
} else {
    
    percentOutput = "LOADING... "+int((myBytesLoaded/myBytesTotal)*100)+"%";
    
    setProperty("loadbar", _xscale, (myBytesLoaded/myBytesTotal)*100);
    play();
}

Any ideas?

Check out senocular’s flash tutorials page…here’s the link for the proload tuts page.

Senocular’s Flash Preload Tutorial

it helped me…from what it says…I don’t know if I would have it as an external file…I usually just use a first frame preloader, and have another preloader in the main timeline for external swiffs.

you need to combine what you have with an onEnterFrame or setInterval.