...or this, which kind of hunts the mouse down gradually...
Flash 5 (attach directly to the object):
onClipEvent(enterFrame) {
_x += (_root._xmouse-_x)/20;
_y += (_root._ymouse-_y)/20;
}
...or MX (place code in frame one, main timeline, object's instance name is 'clip'):
this.onEnterFrame = function() {
clip._x += (_xmouse-clip._x)/20;
clip._y += (_ymouse-clip._y)/20;
};