_root.mymovieclip.onEnterFrame = function() { this._alpha -= 100/30; if (this._alpha <= 0) { gotoAndStop(4); delete this.onEnterFrame; } }