this.play(); this.onEnterFrame = function(){ if(this._currentFrame == 10){ stop(); onEnterFrame = null; } }