i want to have the music always playing and the ability to mute different parts. It is for a project where you click on different people and they come to life to play music. a stop and play would not have them in snyc. I have not been using action script long
var my_sound:Sound = new Sound(); my_sound.load(new URLRequest("triumphant.mp3" ) ); function setMute(vol){ var sTransform:SoundTransform = new SoundTransform(0); sTransform.volume = vol; SoundMixer.soundTransform = sTransform; } my_sound.play(); setMute(0) //2. //3. var Mute:Boolean = true; play_btn.addEventListener(MouseEvent.CLICK, toggleMuteBtn) function toggleMuteBtn(event:Event) { if (Mute) { Mute = false; setMute(1); } else{ Mute = true; setMute(0 ); } }