btn.onPress = function():Void { //начинаем движение this.onEnterFrame = Move; } btn.onRelease = function():Void { //прекращаем движение delete this.onEnterFrame; }