(F5) Changing sounds via a button?

I am making a website, and have 5 loops that I would like to use. I need a button that will change between those 5 loops. How do I do that?

I also need a button that will mute and unmute all sounds. How do I do that?

Thanks

ToddziLLa

You have to link the sounds before you can dynamically use them. Import the 5 sounds and right-click each one in the library. Select “Linkage”. Select “Export this symbol” and type a unique name in the Identifier text box for each sound. Now, you can manipulate the sounds via ActionScript.

the action script would look something like this:

mySound = new Sound(); // creates a Sound object
mySound.attachSound(‘theLinkageIdentifierHere’); // attaches the sound to the sound object
mySound.start(); // starts the sound
mySound.stop(); // stops the sound
mySound.setVolume(50); // sets volume to 50 percent

You can use the attachSound method to assign a different sound to the sound object. There are some other neat sound manipulations, but this is a start.