onEnterFrame = function() { setTimeout(go, 10000); }; function go():Void { delete this.onEnterFrame; };