3 Replies Latest reply on Oct 14, 2006 11:19 AM by kglad

    how to make an object follow the mouse but still being able to move the pointer inside the object

      Im making a meny with a movie clip and i want it to follow the mouse pointer. and i use the following code:

      onClipEvent (load) {
      _y = 0;
      speed = 3;
      onClipEvent (enterFrame) {
      endY = _root._ymouse;
      _y += (endY-_y)/speed;

      But the problem is that when using this code the pointer gets centered in the middle of the movie clip making it impossible to have a sub meny under the main one. So what im wondering is if its possible to put in a code to make it possible to move the pointer inside the movie clip without moving it around until the pointer gets outside the objects border.

      thx for your time!