_root.onEnterFrame = function() { k = (_xmouse-box1._x)/25; if (box1._x<50) { box1._x -= k; } else { box1._x += k; } };