1 decade ago by rootbeerking
I can't seem to find an answer to this. I've successfully muted sounds using
in my index.html. However I can't find a way to do this with music. I tried adding ig.music.pause(); after ig.Sound.enabled = false; but the music kept playing. Any help with this would be much appreciated.
<INPUT type="button" value="Mute Sound" name="mutebutton" id="muteButton" onClick="if (isMute == true){ig.Sound.enabled = true; replaceButtonText('muteButton', 'Mute Sound'); isMute = false;} else {ig.Sound.enabled = false; replaceButtonText('muteButton', 'Unmute Sound'); isMute = true;}">
in my index.html. However I can't find a way to do this with music. I tried adding ig.music.pause(); after ig.Sound.enabled = false; but the music kept playing. Any help with this would be much appreciated.