[flexcoders] Gumbo Keyboard Events

2008-12-04 Thread Dale Fraser
Im trying to do something, fairly simple, at least I thought it was.

 

I need to setup some type of generic Keyboard listener for my application.

 

Then within my application, various classes need to listen for keyboard
events and intercept them.

 

I can't get even a basic example to work, my only success has been achieved
by placing a button on the stage, clicking the button, then I get keyboard
events, but once the button is removed or even hidden, no more keyboard
events.

 

Anyone help me with a generic keyboard listener that I can attach to various
classes?

 

 

Regards

Dale Fraser

 



RE: [flexcoders] Gumbo Keyboard Events

2008-12-04 Thread Alex Harui
systemManager.stage.addEventListener(KeyboardEvent.KEY_DOWN, myhandler);

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dale 
Fraser
Sent: Thursday, December 04, 2008 2:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Gumbo Keyboard Events

Im trying to do something, fairly simple, at least I thought it was.

I need to setup some type of generic Keyboard listener for my application.

Then within my application, various classes need to listen for keyboard events 
and intercept them.

I can't get even a basic example to work, my only success has been achieved by 
placing a button on the stage, clicking the button, then I get keyboard events, 
but once the button is removed or even hidden, no more keyboard events.

Anyone help me with a generic keyboard listener that I can attach to various 
classes?


Regards
Dale Fraser