Hi All,
I have a Flash animation that uses a preloader with this code on frame 1
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onProgress(e:ProgressEvent):void
{
var loaded:Number = e.target.bytesLoaded;
var total:Number = e.target.bytesTotal;
var pct:Number = loaded/total;
loader_mc.scaleX = pct;
loaded_txt.text = "Loading... " + (Math.round(pct * 100)) + "%";
}
function onComplete(e:Event):void
{
gotoAndPlay(2);
}
When I view the webpage with the animation on it, it preloads fine the first time. But when I hit the refresh button on IE6 it goes back to frame 1 with the bar already full and doesn’t move on. If I right click the animation and hit play then it moves onto frame 2 and plays fine.
I don’t have this issue with the refresh on Firefox. It plays it no problem.
Does anyone have any ideas why it’s not firing?
Thanks!