watchKeyBoard = [color=#000087]new[/color] [color=#000087]Object/color;watchKeyBoard.[color=#000087]onKeyDown[/color] = [color=#000087]function/color { [color=#000087]trace[/color]("[color=blue]a key is pressed. the key that is pressed is [/color]"+[color=#000087]Key[/color].[color=#000087]getAscii/color);};[color=#000087]Key[/color].[color=#000087]addListener/color; I try to trace the valye of getAscii. But the trace result returns 0, no matter which key i press on the keyboard.Anyone know why? How can i get the Ascii code ? Thanks~
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Key.getAscii()
|
0 | 163 | March 7, 2005 | |
FMX: keyboard functions(if thats what u can call it) | 1 | 97 | January 21, 2003 | |
Using the Keys in games...(TUT) | 0 | 85 | August 3, 2006 | |
getAscii Help | 0 | 40 | January 8, 2007 | |
Cannot Detect All Key pressed onKeyDown | 0 | 104 | August 12, 2009 |