onEnterFrame = function () { point = {x:_xmouse, y:_ymouse}; theta = Math.atan2(point.y-myClip._y, point.x-myClip._x); speed = 5; myClip._x += Math.cos(theta)*speed; myClip._y += Math.sin(theta)*speed; };