Flash Lite generates keypress events in response to the user pressing keys on the device. You can write key handler code to respond to these events. For a list of the keys that Flash Lite supports, see Keys supported by Flash Lite.
The following table lists commonly used device keys and the corresponding ActionScript key codes and key code constants for those keys:
|
Device key |
ActionScript key code/key code constant |
|---|---|
|
Select key |
Key.ENTER |
|
Up navigation key |
Key.UP |
|
Down navigation key |
Key.DOWN |
|
Left navigation key |
Key.LEFT |
|
Right navigation key |
Key.RIGHT |
|
Left soft key |
ExtendedKey.SOFT1 (or soft1) |
|
Right soft key |
ExtendedKey.SOFT2 (or soft2) |
|
0 |
48 |
|
1 |
49 |
|
2 |
50 |
|
3 |
51 |
|
4 |
52 |
|
5 |
53 |
|
6 |
54 |
|
7 |
55 |
|
8 |
56 |
|
9 |
57 |
|
* |
56 |
|
# |
51 |