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?
this is how you control global volume:
function setVol(newVol : Number):void // use 0-100
{
SoundMixer.soundTransform = new SoundTransform(newVol/100);
}
:)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.