![MACROMEDIA FLASH 8-DEVELOPING FLASH LITE 2.X Develop Manual Download Page 14](http://html1.mh-extra.com/html/macromedia/flash-8-developing-flash-lite-2-x/flash-8-developing-flash-lite-2-x_develop-manual_3346288014.webp)
14
Creating Interactivity and Navigation
The following table lists the ActionScript keypress event that Flash Lite generates in response
to the user pressing a key on the device:
Creating a key catcher button (Flash Professional
Only)
If your application must handle several different keypress events you could either create a
single button for each keypress event, or use a single button to handle all keypress events.
This type of button is commonly called a
key catcher
(or key listener) button. Because the
key catcher button isn’t supposed to be visible to the user, it usually sits off the Stage (in the
work area).
The following procedures demonstrate how to use a key catcher button to handle keypress
events in a simple application. The application lets the user move a circle around the Stage by
pressing the four arrow keys on their device.
You can find a completed version of this application, key_catcher.fla, in the Samples folder on
your hard disk:
■
In Windows, browse to
boot drive
\Program Files\Macromedia\Flash 8\
Samples and Tutorials\Samples\FlashLite.
■
On the Macintosh, browse to
Macintosh HD
/Applications/Macromedia Flash 8/
Samples and Tutorials/Samples/FlashLite.
Device key
ActionScript key event
Availability
0-9, *, #
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
-
9
,
*
,
#
All devices
Select key
<Enter>
All devices
Left Arrow key
<Left>
Devices that support four-way
navigation, only.
Right Arrow key
<Right>
Devices that support four-way
navigation, only.
Up Arrow key
<Up>
Devices that support four-way
navigation, only.
Down Arrow key
<Down>
Devices that support four-way
navigation, only.
Left soft key
<PageUp>
Devices that support the
SetSoftKeys
command, only.
Right soft key
<PageDown>
Devices that support the
SetSoftKeys
command, only.