Step 6b: The Actions Layer (cont.)
If (_level0:sound = 0)
Go to and Play ("on")
Else If (_level0:sound = 1)
Go to and Play ("off")
End If
Since we are inside a movieclip, we need to target the main timeline in order to find the properties of the variable "sound". If "sound" = 0, we send the timeline of the current movie to the "on" label. If "sound" = 1, we send the timeline to the "off" label.
Insert a keyframe in frame 2 of the actions layer. Double-click the frame and on the actions tab, assign the action:
Stop
Insert a keyframe in frame 3 of the actions layer. Double-click
the frame and on the actions tab, assign the action:
Stop
Insert a keyframe in frame 8 of the actions layer. Double-click the frame and on the actions tab, assign the action:
Stop
| » Level Advanced |
|
Added: 2000-12-15 Rating: 7 Votes: 43 |
| » Author |
| No information about the author has been provided. |
| » Download |
| Download the files used in this tutorial. |
| Download (463 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!