Your Ad Here

Posted By

arpo on 10/02/09


Tagged


Versions (?)

Key press Basics


 / Published in: ActionScript 3
 

  1. stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandlerfunction);
  2.  
  3. private function keyHandlerfunction(e:KeyboardEvent):void
  4. {
  5. trace("Ket code: " + e.keyCode);
  6. }

Report this snippet  

You need to login to post a comment.