Preloader
Adobe Flash CS3
Action Script 1.0 & 2.0
Hello, Im just almost done with my site. Just put in a preloader in the 1st scene of my site, and this is the script I put in:
stop();
addEventListener(Event.ENTER_FRAME, loading);
function loading(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(2);
this.removeEventListener(Event.ENTER_FRAME, preload1);
}
}
Went to go test my site, this is the error message I got:
Why am I getting these error messages? Any help would be appreciated. Thanks ![]()
