nmask
9/27/2013 - 6:57 AM

GWD Loop stop

//Stops after three timeline iterations.
var counter:uint;

stage.addEventListener(Event.ENTER_FRAME, stopLastFrame);

function stopLastFrame(event:Event):void{
    if(this.currentFrame == this.totalFrames){
        if(counter >= 11){
            stop();
        }else{
            counter++;
        }
    }    
}