this.onEnterFrame=function(){ cframe=miclip._currentframe; if(cframe==6){ //hacer algo delete onEnterFrame;//quitas el onenterframe } }