MACROMEDIA FLASH 8-LEARNING FLASH LITE 1.X ACTIONSCRIPT Manual page 15

Learning flash lite 1.x actionscript
Table of Contents

Advertisement

4.
Click the Add New Layer button the Timeline window twice to insert two new layers.
Name the top layer Actions, the second layer function1, and the third layer function2.
5.
Insert a keyframe on Frame 2 of the function1 layer, and another keyframe on Frame 3 of
the function2 layer, as the following figure shows:
6.
Select the keyframe on the Actions layer and open the Actions panel.
7.
Add a
action to the Actions panel.
stop()
8.
Select the keyframe on Frame 2 of the function1 layer and do the following:
a.
In the Property inspector, type function1 in the Frame Label text box.
b.
In the Actions panel (Window > Actions), type the following code:
trace("function1 was called.");
9.
Select the keyframe on Frame 3 of the function2 layer and do the following:
a.
In the Property inspector, type function2 in the Frame Label text box.
b.
In the Actions panel (Window > Actions), type the following code:
trace("function2 was called.");
10.
Press Control+E (Windows) or Command+E (Macintosh) to return to the main Timeline.
Using the call() function to create functions
15

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING FLASH LITE 1.X ACTIONSCRIPT and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents