I’ve got a flash site which works fine… except, the preloader percentage in IE is… well… not how it’s supposed to be…
I tested it on every popular commercial browser and it goes from 1 to 100… in f…ing IE it persistently goes from 1 to about 470… !!! WTF?!
btw: the preloader has a rotating circle and a text which displays the percentage…
here’s the code:
loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function loadProgress(e:Event):void {
var total:Number=this.stage.loaderInfo.bytesTotal;
var loaded:Number=this.stage.loaderInfo.bytesLoaded;
var percent:Number=loaded/total;
var txt:int = int((Math.round(percent * 100)));
myLoadText.text = txt + "%";
loadCircle.rotation += 10;
centerPreloader();
}
function onComplete(e:Event):void
{
myLoadText.visible = false;
TweenLite.to(loadCircle, introSec, { alpha:0, ease: Regular.easeOut, onComplete:playIntro } );
loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadProgress);
this.loaderInfo.removeEventListener(Event.COMPLETE, onComplete);
function playIntro():void{
gotoAndPlay("Intro");
}
}
does anybody know what seems to be the problem?