PDA

View Full Version : Removing Key-listeners from component


gnossemann
02-01-2005, 02:41 AM
Hi!

Is it possible to remove the key-listeners from (the List and Scrollpane) components? I only want certain MCs to listen to key-strokes and it's screwing everything up when the component in focus acts on the same key-events.

senocular
02-01-2005, 10:46 AM
the opposite of addListener:

removeListener

gnossemann
02-02-2005, 11:49 PM
Could you give me an example.

I tried Key.removeListener(scrollpane) without success. I'm not sure about what to do...

gnossemann
02-03-2005, 04:17 PM
This is ridiculous. There got to be some way to make those components "deaf". Anyone?? Please help! I've been stuck with this problem for several hours now...

gnossemann
02-03-2005, 04:43 PM
Okay, I kinda solved it by removing the focus from the component at the "focusIn"-event... but I feel like cheating.