Friday, August 26, 2005

Flash Lite [ 2 ] Button event

If you would like to define the UI/Content for the Mobile phone, you need to consider how to use the hardwares button to control it. In the Flash Lite, we can use "Button" to detect these buttons event.

Below are the buttons already defined in the Flash Lite:
4 ways navigation keys: on(keyPress " <Up>"){ } //Up/Down/Left/Right
Left softkey: on(keyPress "<PageUp>"){ }
Right softkey: on(keyPress "<PageDown>"){ }
Enter/Selec keyt button: on(keyPress "<Enter>"){ }
Send key: on(keyPress "<Home>"){ }
Off/End key: on(keyPress "<End>"){ }
Numeric keys (0-9): on(press, keyPress "1"){ }
Star key: on(press, keyPress " * "){ }
Pound key: on(press, keyPress "#"){ }

Other buttons, like "Back" or "Clear". If you would like to use and you will need SW team to provide the relative button.

0 Comments:

Post a Comment

<< Home