Search Tutorials
Step 6d: The Button Layer First, start by clicking the button graphic you created, which resides in frame 1 on the "button" layer. Now, choose Insert>Convert to symbol. In the symbol properties dialog box name it "sound button" and choose button as the type. Click OK. If you would like, you can right click it ,edit it, and define an up, over, down, and hit state but this isn't necessary for this tutorial. Now in frame 3 and frame 8 of the buttons layer, insert a keyframe by hitting F6. With that complete, click on frame 3 of the button layer, and double-click the instance of the button. It will bring up the instance properties dialog box. On the actions tab, assign the following actions:
On (Release)
Go to and Stop ("off")
Begin Tell Target ("_level5")
Go to and Stop ("off")
Set Variable: "_level0:sound" = "1"
End Tell Target
End On
In this script and the following one, we are communicating with three timelines. The main timeline, the timeline of the "sound movieclip", and the timeline of the sound.swf movie which is located in level 5.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|