Header Banner
wonderhowto.mark.png
Gadget HacksNext RealityFood HacksNull ByteThe Secret YumiverseInvisiverseMacgyverismsMind HacksMad ScienceLock PickingDriverless

How to Create a sound on/off button in Flash

Mar 13, 2010 12:35 PM
Text editing interface displaying the words "off" and "on" with a color palette.

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.

The next big software update for iPhone is coming sometime in April and will include a Food section in Apple News+, an easy-to-miss new Ambient Music app, Priority Notifications thanks to Apple Intelligence, and updates to apps like Mail, Photos, Podcasts, and Safari. See what else is coming to your iPhone with the iOS 18.4 update.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!