Hey people,
I’ve got a preloader that works perfectly when I simulate a download in flash. But when I upload the file to my site, it does nothing at all. http://www.seniorict.com/finaleseniorict.html
This is the code of my site
[AS]
stop();
this.addEventListener(Event.ENTER_FRAME, preload1);
function preload1 (e:Event):void{
var total_bytes:Number = this.stage.loaderInfo.bytesTotal;
var loaded_bytes:Number = this.stage.loaderInfo.bytesLoaded;
rectangle_clip.scaleX = loaded_bytes/total_bytes;
text_clip.text = Math.floor((loaded_bytes/total_bytes)*100)+"%";
if (total_bytes==loaded_bytes){
gotoAndPlay(10);
this.removeEventListener(Event.ENTER_FRAME, preload1);
}
}
[/AS]
What could be the cause of this issue?
Thanks for your time!