First time here? First time here? Newsletter Signup Newsletter
Login | Register | 651326 Members and growing!
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!

Comments

  • 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: work2survive
» Title: Girl Walking 1kb
» Description: Walking girl, animation just takes 1kb, using high heels shoes, and fashion model attitude.
Featured Sound Loops
Image for equalize

Audio Player

» Author: BoxCat
» Title: CPU Talk
» Description: From the cyberpunk RPG, "Nameless: the Hackers" Completely Free to use! Keywords: edm hip hop rap electronic mysterious mission hacking chase exciting spy ios ambient chilling love happy sad angry suspense
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: nathan
» Description:

A recorded sound of the Dimensional Fork Gate.