Adobe sony Getting Started Manual page 25

Getting started with flash lite 1.x
Table of Contents

Advertisement

Drag an instance of the button symbol named Reservations to the Stage
4.
and position it below the Specials button, as the following image shows:
Select the Specials button, and open the Actions panel
5.
(Window > Actions).
Add the following code to the Actions panel:
6.
on(press) {
gotoAndStop("specials");
}
This event handler code sends the playhead to the frame labeled
when the user selects this button. You'll create the content
specials
for that frame in the next section (see
on page
27).
On the Stage, select the Reservations button and open the Actions
7.
panel again.
In the Actions panel, enter the following code:
8.
on(press) {
getURL("tel:1-415-555-1212");
}
When the user selects the Reservations menu item, Flash Lite initiates a
phone call to the specified number. Flash Lite always prompts the user
to allow or deny a request from a SWF file to dial a number. For more
information, see "Initiating a phone call" in Learning Flash Lite 1.x
ActionScript.
In the Timeline, select Frame 1 on the Actions layer.
9.
"Creating the specials screen"
Creating the application
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash lite 1.x

Table of Contents