3 Replies Latest reply on Sep 16, 2011 6:06 PM by kglad

    Flash background movement help

    Flash Name here

      I got this message partially answered by Ned Murphy, but i still am struggling to get the solution, he gave me this code:

      onClipEvent(enterFrame){

         if(Key.isDown(Key.UP){
            Mouse.hide();
            this._x =-_root._xmouse+400;
            this._y =-_root._ymouse+200;

         }
      }

      And the code works, but what i want is the opposite, what this does is makes it so when i hold down UP key the background will move according to my mouse.

      But i want it so the background will stop following the mouse when i press and let go of UP, so i dont have to hold it. Please relpy ASAP.