User Guide
11
2
CHAPTER 2
Creating Interactivity and
Navigation
To interact with your Macromedia Flash Lite application, a user must be able to determine
which object on the screen currently has focus, navigate among objects, and initiate an action
by selecting an object or another key. While these basic principles are the same as for desktop
applications, some of the functionality varies for mobile devices.
This chapter contains the following topics:
About user interaction in Flash Lite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Keys supported by Flash Lite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Using default navigation in Flash Lite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Handling key and button events (Flash Professional only) . . . . . . . . . . . . . . . . . . . . . 20
About user interaction in Flash Lite
Flash Lite supports navigation and user interaction through the device’s keypad, or through a
stylus or touch-screen interface on devices that provide one. The options available to your
application vary depending on the target device and content type. For more information
about content types, see “About Flash Lite content types” in Getting Started with Flash Lite
2.x.
The simplest way to add key-based interactivity to a Flash Lite application is default
navigation, which uses the device’s four-way keypad like the arrow keys or the Tab and
Shift+Tab keys in a desktop application. The user moves the focus to the desired object and
then presses the select key. The application includes event handler code to respond to these
button events. Default navigation in Flash Lite works with buttons, input text fields, and,
optionally, movie clips; it is typically best for simple user interactions such as menus. For more
information about default navigation, see “Using default navigation in Flash Lite” on page 13.
Applications can also respond to arbitrary key press events that Flash Lite generates when a
user presses a particular key. Event-based navigation allows you to create Flash Lite
applications like games that have a complex user interaction model. For more information
about events, see “Handling key and button events (Flash Professional only)” on page 20.