Hello
I have a preloader that works fine, but when I reload the Internet explorer page with F5, it hangs, it basically stays there… keeps looping, but does not move to next scene.
If I close the IE window and relaunch or if I clear cache it works fien again…
Anyone has any idea what may be causing this very strabeg behaviour?
Thsi is the AS3 code I am using:
import flash.events.ProgressEvent;
stop();
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
function loadProgress(my_content:ProgressEvent):void {
var percent:Number = Math.floor( (my_content.bytesLoaded*100)/my_content.bytesTotal );
root.loaderInfo.addEventListener(Event.COMPLETE, loadComplete);
L1.LD1.text = percent + " %";
L1.gotoAndStop(percent);
}
function loadComplete(e:Event):void {
root.loaderInfo.removeEventListener(Event.COMPLETE, loadComplete);
root.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadProgress);
parent.nextScene();
}