Adobe sony Getting Started Manual page 35

Getting started with flash lite 1.x
Table of Contents

Advertisement

From the Library, drag the Key Catcher button symbol and place it in
7.
the work area off the Stage.
To view the work area, in Flash choose View > Work Area.
The purpose of this button is to "catch" ActionScript keypress events
initiated by the user, and then take the appropriate action. For more
information about using key catcher buttons, see "Creating a key
catcher button" in Developing Flash Lite 1.x Applications.
Select the key catcher button, and in the Actions panel, enter the
8.
following code:
// Handle right soft key event ("Next" button):
on(keyPress "<PageDown>") {
play();
}
// Handle left soft key event ("Home" button):
on(keyPress "<PageUp>") {
gotoAndStop("main");
}
The first
on(keyPress)
next image in the sequence; the second one sends the playhead to the
main application screen.
Choose Control > Test Movie to test the final application in
9.
the emulator.
handler advances the image animation to the
Key catcher button
Work area
Creating the application
35

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash lite 1.x

Table of Contents