Tag Archives: actionscript sound

How to add sound with actionscript

March 31, 2010

3 Comments

Actionscript sound classes are easy to use and the language reference has some pretty good examples showing how to use it. The classes we are interrested in is Sound, SoundChannel, SoundMixer and SoundTransform, and yo can find this classes in flash.media. How to get a file playing var music:Sound = new Sound(new URLRequest(“test.mp3″)); music.play(); There [...]

Continue reading...

Flash sound button tutorial

March 19, 2010

11 Comments

Download the source Flash sound button.zip In this tutorial we will learn how to Add sounds to a button via ActionScript, this avoiding the need to put them manually in each button. Step 1 Open a new Flash document. Call the first layer button. Using the Oval tool (O) draw a circle on stage. You [...]

Continue reading...