Hey Friends,
I have problem with flash preloader file.
I am designing this flash file in flash cs3.i have used action script3.
problem is for repeating loding banner in my flash file.
i m new in flash designing.
I have attached my flash file.
pls tell what's the problem.
action script code
import flash.events.Event;
stop();
this.addEventListener(Event.ENTER_FRAME, loading);
function loading(e:Event):void{
var total:Number = this.stage.loaderInfo.bytesTotal;
var loaded:Number = this.stage.loaderInfo.bytesLoaded;
domainname.scaleX = loaded/total;
loader_txt.text = Math.floor((loaded/total)*100)+ "%";
if (total == loaded){
this.removeEventListener(Event.ENTER_FRAME, loading);
play();
}
}
Thanks