Works fine in firefox. However in IE, movie loads fine first time, but if the page refreshes, it hangs at the preloader. May be a classic problem, I see it mentioned a lot, but I haven’t been able to find any easy work-around. Of course, once the movie is loaded remotely, it’s cached, so not sure how to tell IE that. Tried various other things like Math.round and pcent >= 99 to no avail.
Here is the code:
import flash.display.*;
this.stop();
this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL_LOADING);
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
lbar.scaleX=pcent/100;
lpc.text=int(pcent)+"%";
if(pcent==100){
this.gotoAndPlay("start");
}
}
thanks