In this movie there is a mute button in the upper right hand corner of the user interface. This button I want to turn ALL sounds off. in the first fram 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.
A.S. 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
}
}
A.S. 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
}
}
I have movies on level 4 and level 8 as well, but the reference to them in the sound button is just to make a clip invisible or visible [it is a closed caption solution].
No sounds are stopped right now except for the streaming narration on level4. But I need all these button event sounds stopped as well.