1 Reply Latest reply on Sep 28, 2008 8:51 AM by kglad

    scrolling background using mouse follow

    devil259
      hi guys,

      goal/aim: is to achieve a mouse follow effect like this site: here

      problem: i try to get the movement by using this code and place on the mc i wanna control..

      onClipEvent (enterFrame) {
      endX = _root._xmouse;
      speed = 4;
      _x += (-endX-_x)/speed;
      }

      now the problem is how am i going to get the easing be continuous according to my mouse direction? eg. when i place my mouse cusor on the right, the stage will move to the left continously until i stop it by moving my cusor away or to the left.

      can the flash guru here help me as i need it pretty urgently :(

      thanks alot