Hi all,
I’ve been working on this for a day now, and I’m stumped…I had the whole movie working without the percentage bar, and dynamic percentage. All I wanted to do was add it.
I read the tutorial from http://www.kirupa.com/developer/mx/percentagepreloader.htm
However, when I implemented it on my site …It shows and all but it doesn’t finish loading 100% before playing …
Here’s my actionscript:
On my first frame, I have:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent100;
this.loadText = Math.round(getPercent100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(“main”,10)
}
For some reason, I have a feeling I need to add a piece of code to the above statement, that tells the movie not to go along until the movie is completely loaded. Anyway…
On my second frame, I have:
this.gotoAndPlay(“preloader”,1)
Any Ideas??
All are appreciated