Please help turn all sounds OFF! [streaming and event]
There is a mute button in the upper right corner of the user interface. I want to turn ALL sounds off with this button. in the first frame of the movie there is:
globalvolume = new Sound();
This seems to turn some sounds off but not all. Please help! It has to be able to turn streaming sounds and event sounds off, and i cannot use stopAllSounds. The sound button is the button on the left in the top right corner of movie attached to this Post.
Script attached to "off" button:
on (release) {
if (_root.globalvolume.getVolume()>0) {
_root.globalvolume.setVolume(0);
setProperty(_level4.mute, _visible, true);
// mutes all sound
play();
// switch to mute frame
} else {
_root.globalvolume.setVolume(100);
// unmutes all sound
play();
// switch to unmute frame
}
}
Script attached to "on" button:
on (release) {
if (_root.globalvolume.getVolume()>0) {
_root.globalvolume.setVolume(0);
// mutes all sound
play();
// switch to mute frame
} else {
_root.globalvolume.setVolume(100);
setProperty(_level4.mute, _visible, false);
setProperty(_level8.mute, _visible, true);
// unmutes all sound
play();
// switch to unmute frame
}
}