stop(); tt=getTimer(); this.onEnterFrame = function(){ if((getTimer()-tt)>5000){ delete this.onEnterFrame; play(); } }