myButtonMovie.onPress = function() { this.onEnterFrame = function(){ this._rotation = _ymouse; } } myButtonMovie.onRelease = function() { delete this.onEnterFrame; }