|
|
Search Tutorials
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
|
||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||
|