onClipEvent (enterFrame) { max_x = 1000; min_x = 500; mx = _root._xmouse; _x+=(mx-_x)/100; if (_x<min_x) _x=min_x; if (_x>max_x) _x=max_x; }