var speed = 1; btn1.onRelease = function() { speed += 2; }; this.onEnterFrame = function() { move1._x += speed; };