I’m testing out a preloader here: http://www.bluetorchmedia.com/flash_test.htm
You’ll see that the progress bar doesn’t go all the way to the right of the logo before it loads the photo.
Here is the as:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Just basically ripped it from a tut on kirupa.
On another note, how could i get the logo and load bar to fade out once the load bar hits 100%?
:puzzle: