3 Replies Latest reply on Jun 17, 2007 9:31 AM by kglad

    keyboard events not registering

    ajpetersen
      Hi all, this is my first post...

      I'm using CS3, but previously used CS2. I'm using the following code:

      function inputDecoder(e:KeyboardEvent):void
      {
      trace( e );
      }

      stage.addEventListener(KeyboardEvent.KEY_DOWN, inputDecoder);

      Some keys are detected upon the press, but most are not. For example, when the spacebar is depressed, the following is outputted: [KeyboardEvent type="keyDown" bubbles=true cancelable=false eventPhase=2 charCode=32 keyCode=32 keyLocation=0 ctrlKey=false altKey=false shiftKey=false]

      But then when I press the "Q" key, for example, nothing is output.

      Is there any reason for this to occur? I'm using a Dell 600m laptop, and have never had any problems with the keyboard before.

      Thanks in advance for the help!