mc.onEnterFrame = function () { if (_root._xmouse < 100) { this._x += (100 - _root._xmouse) / 60; } if (_root._xmouse > 600) { this._x += (600 - _root._xmouse) / 60; }