Hi, I have a preloader. which seems to work, but then does not play the animation, just a simple shape tween. Code is attached.
PHP Code:
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onProgress(e:ProgressEvent):void{
var loaded:Number = e.target.bytesLoaded;
var total:Number = e.target.bytesTotal;
var pct:Number = loaded/total;
loader_mc.scaleX = pct;
loaded_txt.text = "Loading... " + (Math.round(pct * 100)) + "%";
}
function onComplete(e:Event):void{
nextFrame();
/*gotoAndPlay(2);*/
}
On frame 41 after the shape tween I have a stop();
Can anybody help me figure this out?
Thanks so much,
Johnny