PDA

View Full Version : mute all sounds in game


johosher
05-30-2008, 06:18 PM
i have sounds in a flash game which include music from the library, sound effects and sound effects that are embedded in movieclips. i am trying to make a mute button... is there a method or anything that mutes everything at once?

fitz
06-02-2008, 04:13 PM
this is how you control global volume:


function setVol(newVol : Number):void // use 0-100
{
SoundMixer.soundTransform = new SoundTransform(newVol/100);
}



:)