Siemens sony User Manual

Page 25

Advertising
background image

Creating the application

25

4.

Drag an instance of the button symbol named Reservations to the Stage
and position it below the Specials button, as the following image shows:

5.

Select the Specials button, and open the Actions panel
(Window > Actions).

6.

Add the following code to the Actions panel:

on(press) {

gotoAndStop("specials");

}

This event handler code sends the playhead to the frame labeled

specials

when the user selects this button. You’ll create the content

for that frame in the next section (see

“Creating the specials screen”

on page 27

).

7.

On the Stage, select the Reservations button and open the Actions
panel again.

8.

In the Actions panel, enter the following code:

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
.

9.

In the Timeline, select Frame 1 on the Actions layer.

Advertising