![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/2/38/2388e2db-29fd-4cb4-ba34-dd210e2d1db6/2388e2db-29fd-4cb4-ba34-dd210e2d1db6-bg91.png)
Macromedia MAX 2005 - Anaheim, CA What’s New In Flash 8
145
Position the button beneath the text field (already in place) that introduces the restaurant.
Drag an instance of the button symbol named Reservations to the Stage and position it below
the Specials button, as the following image shows:
Select the Specials button, and open the Actions panel (Window > Actions).
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.
On the Stage, select the Reservations button and open the Actions panel again.
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.
In the Timeline, select Frame 1 on the Actions layer.
Open the Actions panel and enter the following code:
stop();