I have the following code in one of my components:
private function onInit(e:Event):void
{
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
}
private function reportKeyDown(event:KeyboardEvent):void
{
trace(Key Pressed: + String.fromCharCode(event.charCode) +
: [flexcoders] Listening for global keyboard events
I have the following code in one of my components:
private function onInit(e:Event):void
{
stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
}
private function reportKeyDown(event:KeyboardEvent):void
{
trace(Key
2 matches
Mail list logo