I have been making my preloader with this tutorial on kirupa. [URL=“kirupa.com - Percentage Preloader with Load Bar”]
http://www.kirupa.com/developer/mx/percentagepreloader.htm
Ive made it precisely to the tutorial. Its for a website im working on.
The problem is that it apears with a blank white box for a while, and this is when the flash is being loaded, instead of letting my preloader do it. I am assuming that the host assumes the content wouldnt load itself, so it chooses to load it for it for it.
In the first actions frame I have this:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
In the second I have this:
[COLOR=red][SIZE=2]this.gotoAndPlay(1)[/SIZE][/COLOR]
EXAMPLES:
This is an earlier version, but it shows what im talking about.
[URL=“http://www.n3r.innersw.com/”]http://www.n3r.innersw.com/
This is the latest version, and if your internet connection is so fast you didnt catch the above one, you should see this.
[URL=“http://www.n3rclan.bravehost.com/”]http://www.n3rclan.bravehost.com/
In the first example, it did go to the preloader, but this preloader required you to press Play. And most of it was already loaded by the time you see it.