but.onRelease = function(){ this.onEnterFrame = function() { if(this._alpha>0){ this._alpha -=20; } else { delete this.onEnterFrame; } } }