on (press) { this.onEnterFrame = function() { _root.mc._x += 10; }; } on (release, releaseOutside) { delete this.onEnterFrame; }