2 Replies Latest reply on Sep 18, 2010 11:19 PM by Gaciwz

    fungtion mouse

    Gaciwz

      Hi....

      I can be this difficult to change the keyboard to the mouse function.
      anyone can help me?

       

       

      onClipEvent (keyDown) {

      with (_root)

      {

      if (Key.getCode() == Key.UP)

      {

      nextPacDir = 0;

      }

      else if (Key.getCode() == Key.RIGHT)

      {

      nextPacDir = 1;

      }

      else if (Key.getCode() == Key.DOWN)

      {

      nextPacDir = 2;

      }

      else if (Key.getCode() == Key.LEFT)

      {

      nextPacDir = 3;

      }

      else if (playing && (Key.getCode() == 80 || Key.getCode() == 112))

      {

       

       

      tx Before...

        • 1. Re: fungtion mouse
          Ned Murphy Adobe Community Professional & MVP

          It can be very difficult to try to determine what you want though.  The mouse has very limited functionality compared to a keyboard... you can move it, or with respect to objects you can rollover, rollout, mousedown, mouseup, click.  So in what way would you want to make that code work with the mouse?

          • 2. Re: fungtion mouse
            Gaciwz Level 1

            oh thankz ...

            I tried to make a "button" or "MC" for up, down, left & right.

            so what I want to try to make is if the button was in "Click" the object was "Move" button suit.