onClipEvent(enterFrame) {
_x = _x + (_parent._xmouse - _x)/10;
_y = _y + (_parent._ymouse - _y)/10;
// _parent._xmouse - _x gives us the difference
// between the position of the mouse and that
// of the instance. Dividing by 10 moves the
// instance to a point 1/10 of the way to
// the mouse.
}
|