Preloader not working in IE….
Hi All,
Here is my code:
stop();
var preLoaderPercent:Number;
this.loaderInfo.addEventListener(Event.COMPLETE, loadComplete);
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
function loadComplete(e:Event) {
this.loaderInfo.removeEventListener(Event.COMPLETE, loadComplete);
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadProgress);
play();
}
function loadProgress(e:ProgressEvent):void {
preLoaderPercent = Math.floor((e.bytesLoaded / e.bytesTotal)*100);
loader_txt.text = preLoaderPercent + "%";
}
loader_txt shows the percent loaded fine in Safari, Firefox and Chrome but in IE it doesn't show the percent loaded, it just all of a sudden starts playing the movie. I've cleared the cache in IE as well....
I've also tried using enterFrame instead and that does exactly the same thing in IE.
Any help greatly appreciated....