var i:Number=0 thisScene.onEnterFrame = function() { i++; if (i==your_time) { _root.gotoAndPlay(Frame) } }