3 Replies Latest reply on Dec 16, 2008 9:27 PM by Damo1954

    on(keypress ...)...  how to use keycode?

    Level 7
      Hi all,
      I need to update an old application where I can to control some objects at
      runtime.
      The old application used the

      on(keypress "<right>") {
      bla;
      bla;
      bla;
      }

      to move the selected object to the right.
      All went ok this way.

      But now I need to use the numpad keys to move the object along diagonals,
      up, down, right and left.

      Is there a way to use the keypress command and specify a character code for
      the numpad keys?

      I've read the livedocs on adobe websites but it seems I need to rewrite the
      whole thing.

      Is there a simpler way to update this application without rewriting it from
      the ground up?

      TIA

      tony