First time here? First time here? Newsletter Signup Newsletter
Search tutorials
Author: Michael Miller | Website: http://www.mindwhirl.com

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
(10 being the highest)
» Author
No information about the author has been provided.
» Download
Download the files used in this tutorial.
» Forums
More help? Search our boards for quick answers!


  • There are no comments yet. Be the first to comment!

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.
Featured Flash FLA
» Author: Inocreato
» Title: RaiseTheBlocks
» Description: Raise all the blocks to win the game
Featured Sound Loops
Image for equalize

Audio Player

» Author: TomCat Carty
» Title: The Wood
» Description: Just a little game ending or it can maybe be looped. Recorders with music box and percussion to give the feel of well, I don't know, the woods? Free to use, just credit me. thank you
Latest Font
» Author: Fábio FAFERS
» Description: I created this font for free use. Everyone can apply it in personal or business texts. Its free, but I want to be communicated in case of business use. Donations are accepted to keep the project of free fonts alive! Thank you all
Featured Sound Fx
Image for equalize

Audio Player

» Author: Davisigner
» Description: Hmm... what to say about this one? It's reminiscent of the closing notes of the opening music from the Three Stooges done in a church organ style with a closing cymbal crash. I'll give this one away gratis, but feel free to check out my free loops and potential upcoming license-mandated ones over in the respective part of Flashkit.