4 Replies Latest reply on Apr 22, 2009 6:38 PM by goalpost95

    Have MC follow cursor in a given area

    goalpost95

      what i want to happen is have images in a movie clip scroll up and down but i don't want to have to move the mouse to the top of the page to see the top image

       

      here is my code so far

       

      frame 1:

       

      if (_root._ymouse > _root.circle._y) {

      _root.circle._y = (_root.circle._y + 10);

      } else {

      _root.circle._y = (_root.circle._y - 10);

      }

      frame 2:
      if (_root._ymouse > _root.circle._y) {
      _root.circle._y = (_root.circle._y + 10);
      } else {
      _root.circle._y = (_root.circle._y - 10);
      }
      gotoAndPlay (1);