Search Tutorials
Step 2: The Actions Layer (cont.)
Load Movie ("sound.swf", 5)
Set Variable: "sound" = "0"
Set Variable: "menu" = "0"
We put this code into frame one, because we want to define the variables "menu" and "sound" as soon as the movie loads. We also tell flash to load our sound.swf movie which we will be creating a little latter on, and put it into level 5. You can choose any level you would like to load the movie into. I just always use level 5 for sound. On frame 2, in the actions layer, insert a blank keyframe. Double-click the frame, and on the actions tab, insert the following: Stop On frame 3, in the actions layer, insert a blank keyframe. Double-click the frame, and on the labels tab, insert the following label: menuout On frame 13, in the actions layer, insert a blank keyframe. Double-click the frame, and on the actions tab, insert the following: Stop On frame 16, in the actions layer, insert a blank keyframe. Double-click the frame, and on the labels tab, insert the following label: menuin And finally, On frame 26, in the actions layer, insert a blank keyframe. Double-click the frame, and on the actions tab, insert the following: Stop
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|