MACROMEDIA FLASH 8-DEVELOPING FLASH LITE Develop Manual page 28

Developing flash lite applications
Hide thumbs Also See for FLASH 8-DEVELOPING FLASH LITE:
Table of Contents

Advertisement

3.
In the Timeline, select the Content layer.
4.
Using the Text tool, create a static text field named Left (or text of your choice) and
position it in the lower-left corner of the Stage, above the Left soft key on the device.
5.
Create another static text field named Right, and position it in the lower-right corner of
the Stage, above the Right soft key on the device.
6.
Using the Text tool, create another dynamic text field and position it in the middle of
the Stage.
This text field displays a message when you run the application and press the Left and
Right soft keys. Your document's Stage should look like the following image:
In a real-world application, you might want to use something other than ordinary text
fields for the soft key labels, such as graphic or movie clip symbols.
7.
With the status text field still selected, in the Property inspector, type status in the Var
text box.
8.
Create a key catcher button (see
on page
14). In the Actions panel, attach the following code to the button:
// Handle Left soft keypress event
on(keyPress "<PageUp>") {
status = "You pressed the Left soft key.";
}
// Handle Right soft keypress event
on(keyPress "<PageDown>") {
status = "You pressed the Right soft key.";
}
9.
In the Timeline, select Frame 1 on the Actions layer.
28
Creating Interactivity and Navigation
Status message text field
Soft key labels
"Creating a key catcher button (Flash Professional Only)"

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-DEVELOPING FLASH LITE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents