|
You can't turn off the KeyboardEvents that
the Flash Player dispatches. But you can stop components from listening to
them. In the Button source code, I see override protected function
keyDownHandler(event:KeyboardEvent):void { if (!enabled) return; if (event.keyCode ==
Keyboard.SPACE) buttonPressed(); } override protected function
keyUpHandler(event:KeyboardEvent):void { if (!enabled) return; if (event.keyCode ==
Keyboard.SPACE) { buttonReleased(); if (phase == ButtonPhase.DOWN) dispatchEvent(new
MouseEvent(MouseEvent.CLICK)); phase = ButtonPhase.UP; } } So you could write a BetterButton subclass
and override these two handlers to not respond to the SPACE key. Then you'd use
<BetterButton> everywhere instead of <Button> - Gordon From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of jpc14_99 Trouble! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- RE: [flexcoders] How can I DISABLE THE STUPID SPACE BAR GLOB... Gordon Smith

