
Macromedia MAX 2005 - Anaheim, CA What’s New In Flash 8
152
On the Actions layer, select the keyframe on Frame 30 and enter the following code in the
Actions panel:
title = "Seared Salmon";
description = "Filet of wild salmon with
caramelized onions, new potatoes, and caper and
tomato salsa.";
stop();
On the Actions layer, select the keyframe on Frame 40 and enter the following code in the
Actions panel:
title = "New York Cheesecake";
description = "Creamy traditional cheesecake
served with chocolate sauce and strawberries.";
stop();
On the Actions layer, select the keyframe on Frame 50 and enter the following code in the
Actions panel:
gotoAndStop("specials");
This code returns the playhead to the beginning of the animation sequence. The first and last
images in the animation sequence are the same, which creates the illusion of a continuous
animation.
Save your changes.
Next you'll add navigation to the specials screen that lets the user navigate between images and
descriptions of each special.
To add navigation to the specials screen:
1. In the Library panel (Window > Library), locate the symbol named Home and drag it to the
lower-left corner of the Stage.
2. In the Property inspector, set the Home graphic's x coordinate to 0 and its y coordinate to
188.
3. Drag the symbol named Next from the Library to the lower-right corner of the Stage.
4. In the Property inspector, set the graphic's x coordinate to 120 and its y coordinate to 188.
5. The Stage in your application should look something like the following screen shot: