22
Creating Interactivity and Navigation
11.
Test the application in the emulator (Control > Test Movie).
Watch the messages in the Output panel as you press the Up and Down Arrow keys on the
emulator’s keypad.
Creating a simple menu using buttons and tab
navigation (Flash Professional Only)
This section shows you how to create a simple menu using buttons and tab navigation. To
create the menu, you’ll use three button symbols, one for each menu option. You’ll attach
event handling code to each button instance that displays a message when the user rolls over
each menu item—that is, when the user gives focus to the corresponding button—and when
the user selects the menu item by pressing the Select key on their device. For more
information about handling button events in Flash Lite, see
“Handling button events (Flash
Professional Only)” on page 20
.
You’ll start with a partially completed Flash document that is preconfigured to target the
Nokia 7610 and the Standalone Player content type. You can change these settings to target a
different device and content type (see
“Using the Flash Lite emulator (Flash Professional
Only)” on page 66
).
To create a simple menu using buttons:
1.
Open the file named simple_menu_start.fla, which is located in the \Samples and
Tutorials\Tutorial Assets\FlashLite\ folder.
2.
Open the Library panel (Window > Library).
Notice that the Library contains three buttons symbols named News Button, Weather
Button, and Sports Button.