Header Banner
WonderHowTo Logo
WonderHowTo
Adobe Flash
wonderhowto.mark.png
Gadget Hacks Next Reality Food Hacks Null Byte The Secret Yumiverse Invisiverse Macgyverisms Mind Hacks Mad Science Lock Picking Driverless

How to Create a sound on/off button in Flash

Mar 13, 2010 12:35 PM

Tasktutorial teaches you how to create a sound on/off button using Flash. Name the first layer Actionscript. Go to frame 1, then window - actions. Add stop(); Go to frame 2, then window - actions. Add stopallsounds(); Create a new layer and select the text tool. Write off on. Change the color to black. Select the text and hit CTRL + B to break apart the letters. Select off, hit F8 and select convert to button. Name it off. Do the same for on, but name it on. Double click to open the off button. Go to frame down and change the text color to red. Do the same for on. Go to frame 1 and select off. Go to window - actions and add on (release) ( nextframe(); ) Copy this text, select on, go to window - actions and switch nextframe for prevframe. Create a new layer and import a sound file. Go to frame 2 and insert a blank keyframe. Finally, go to control - test movie.

You already know how to use your phone. With Gadget Hacks' newsletter, we'll show you how to master it. Each week, we explore features, hidden tools, and advanced settings that give you more control over iOS and Android than most users even know exists.

Sign up for Gadget Hacks Weekly and start unlocking your phone's full potential.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!