9.
Test the application by selecting Control > Test Movie.
Press the four arrow keys on the emulator's keypad to make the circle move around
the Stage.
For another example of using a key catcher button, see
clips (Flash Professional Only)" on page
Creating a simple menu using movie clips (Flash
Professional Only)
In this section you'll learn how to create a simple menu using movie clips. In this method,
rather than relying on the default tab navigation between buttons—and attaching code to
each button—you use a key catcher button to listen for keypress events and update the user
interface as needed. This technique does involve more development work than the button
menu approach (see
"Handling key events (Flash Professional Only)" on page
offers some advantages:
Control over tab order. Rather than tab order being determined by the Flash Lite player
(as with buttons), you (the developer) can decide what object has focus and how it
responds to keypress events.
Maintain menu selection between application states. For example, suppose you want your
application to "remember" the last menu item the user selected so you can return the focus
to the same item at a later time. This isn't possible using a button menu because you can't
assign button focus using ActionScript.
In the following procedure, you start with a partially completed Flash document. You can find
a completed version of the application (movieclip_menu_complete.fla) in the /Tutorials and
Samples/Samples/Flash Lite/ folder in the Flash installation folder.
To create a simple menu using movie clips:
1.
Open the file named movieclip_menu.fla located in the /Tutorials and Samples/Samples/
Flash Lite/ folder in the Flash installation folder.
2.
In the Timeline, select the layer named Menu Items.
16
Creating Interactivity and Navigation
"Creating a simple menu using movie
16.
13), but it
Need help?
Do you have a question about the FLASH 8-DEVELOPING FLASH LITE and is the answer not in the manual?