Mute and UnMute Sounds with Flash (action script 2.0)

Add the followings to your buttons.

To mute all sounds

on (release) {
var PlayingSound:Sound = new Sound();
PlayingSound.setVolume(0);
}

To Un-mute all Sounds

on (release) {
var PlayingSound:Sound = new Sound();
PlayingSound.setVolume(100);
}