Handling Button Events (Flash Professional Only) - MACROMEDIA FLASH 8-DEVELOPING FLASH LITE Develop Manual

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

Advertisement

15.
Select Control > Test Movie to test the application in the emulator.
To interact with the menu, click the Up and Down Arrow keys on the emulator with your
mouse, or press the corresponding arrow keys on your keyboard.
Handling button events (Flash
Professional Only)
Flash Lite supports the following ActionScript button events:
. To handle these events, you attach an
rollOut
where
is one of the supported button events listed in the following table:
event
Button event
press
release
rollOver
rollOut
The following procedure demonstrates how to create a simple application that handles button
events. For an example of using buttons to create a menu, see
buttons and tab navigation (Flash Professional Only)" on page
To create a button event handler script:
1.
Create a new document from the Flash Lite 1.1 Series 60 device template and save it as
button_handler.fla.
For more information on creating documents from the Flash Lite templates, see "Using
Flash Lite document templates (Flash Professional Only)" in Getting Started with
Flash Lite.
2.
Select Window > Common Libraries > Buttons to open an external library of prebuilt
button symbols.
3.
In the Library panel, double-click the Circle Buttons folder to open it.
4.
Drag an instance of the Menu button symbol to the Stage.
5.
Select the button and open the Actions panel (Window > Actions).
20
Creating Interactivity and Navigation
When event is generated
User presses the Select key on device when button has focus.
User releases the Select key on device when button has focus.
Button receives focus.
Button loses focus.
,
press
release
handler to a button instance,
on(event)
"Creating a simple menu using
22.
,
, and
rollOver

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents