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.
| » 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!