1 Reply Latest reply on Feb 12, 2007 11:53 AM by kglad

    Key.isDown problem

    DiscipleEX Level 1
      This code doesnt work, does anyone know why? All I'm trying to do is have the message fun print out when the user hits the A button on the keyboard.

      var keyListener:Object = new Object();
      keyListener.onKeyDown = function() {
      if (Key.isDown(97)) {
      trace("fun")
      }
      };
      Key.addListener(keyListener);