Adobe sony Getting Started Manual page 33

Getting started with flash lite 1.x
Table of Contents

Advertisement

Open the Actions panel and add the following code:
9.
title = "Summer salad";
description = "Butter lettuce with apples, blood orange
segments, gorgonzola, and raspberry vinaigrette.";
fscommand2("SetSoftKeys", "Home", "Next");
stop();
This code displays the name and description of the special that the user
is currently viewing, and stops the playhead. The
command registers the device's soft keys that will let the user return to
the home screen, as well as navigate between specials.
On the Actions layer, select the keyframe on Frame 20 and enter the
10.
following code in the Actions panel:
title = "Chinese Noodle Salad";
description = "Rice noodles with garlic sauce, shitake
mushrooms, scallions, and bok choy.";
stop();
On the Actions layer, select the keyframe on Frame 30 and enter the
11.
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
12.
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
13.
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.
14.
Next you'll add navigation to the specials screen that lets the user navigate
between images and descriptions of each special.
SetSoftKeys
Creating the application
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash lite 1.x

Table of Contents