Internet Commerce

Partners & Affiliates














Developer Channel

internet.com


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Interactivity

Categories Sound Toggle Menu using Variables
Author: Michael Miller | Website: http://www.mindwhirl.com |

 
Page 14
«prev ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 next»

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.

«prev ... 5 6 7 8 9 10 11 12 13 14 15 16 17 18 next»

» Level Advanced

Added: : 2000-12-15
Rating: 6.83 Votes: 43
Hits: 9069
» Author
No information about the author has been provided.
» Download
Download the files used in this tutorial.
Download (463 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments
 
   
 


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers