Hi I want to add mute button to my movie using dot notation code. Using one button it should mute / unmute the sound. Thanx.
Printable View
Hi I want to add mute button to my movie using dot notation code. Using one button it should mute / unmute the sound. Thanx.
First frame of the main timeline...
myGlobalSound = new Sound(this);
On the button...
Code:on (release) {
if (muted = !muted){
myGlobalSound.setVolume(0);
}else{
myGlobalSound.setVolume(100);
}
}