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 | 52 | March 7, 2005 | |
Key.getAscii help
|
0 | 66 | August 22, 2006 | |
getAscii Help | 0 | 36 | January 8, 2007 | |
Key.getAscii() help needed :) | 0 | 37 | September 24, 2006 | |
How to detect fast key presses?
|
0 | 90 | February 24, 2008 |