var speed:Number = 3; clip._alpha = 0; clip.onRollOver = function():Void { this.onEnterFrame = showButton; } function showButton():Void { if (this._alpha < 100) { this._alpha += speed; } else { delete this.onEnterFrame; } }