Can someone please help quickly mute or unmute the stage volume in Flash CS3 using AS 3.0.
Thanks
What you want is the SoundMixer class. Just set it's soundTransform object like this:
Mute:
SoundMixer.soundTransform = new SoundTransform(0);
Unmute:
SoundMixer.soundTransform = new SoundTransform(1);
Tareq Rahman
Put this line into your script when you want to stop the sound:
SoundMixer.stopAll();
来源:https://stackoverflow.com/questions/1362379/flash-cs3-as-3-0-mute-and-unmute-stage-volume