mc.onEnterFrame = function () { if (_root._xmouse < 200) { mc._x += (400 - _root._xmouse) / 30; } if (_root._xmouse > 400) { mc._x += (500 - _root._xmouse) / 60; } if(mc._x >= 400){ mc._x -= 20; } else if(mc._x <= 200){ mc._x += 5; } }