stop(); var counter:Number=0; onEnterFrame=function(){ counter+=1; if(counter%_global.speed==0){ nextFrame(); } }