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

Member Avatar for rajarajan2017

Its working fine

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.