Thank you in advance!
Don
Here is the code I am using as a preloader:
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onloading);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onloading(evt:ProgressEvent):void {
var loaded:Number = evt.bytesLoaded / evt.bytesTotal;
percent_txt.text = (loaded*100).toFixed(0) + "%";
var counter= (loaded*100)*3.6;
masked_mc.mask=masking_mc;
masked_mc.rotation=counter;
trace(masked_mc.rotation);
if(masked_mc.rotation<0) (masked_mc.mask=null)
};
function onComplete(event:Event):void {
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, onloading);
this.loaderInfo.removeEventListener(Event.COMPLETE, onComplete);
gotoAndPlay(2);
};

New Topic/Question
Reply


MultiQuote


|