Copy link to clipboard
Copied
how can i set mute/unmute button synchronizedly when I want to changed to next scene. example I already play the sound at scene 1 but when I go to the scene 3, I was muted the button, and then when I go to scene 4, supposedly system will muted the sound because previous sceneI have muted the sound. But when I changed to scene 4 the sound play from the beginning of music. and this problems continuously to others frame also.
I very need a help, thank you
Copy link to clipboard
Copied
you'll need to use code.
Copy link to clipboard
Copied
i have used this code for sound to every scene
Copy link to clipboard
Copied
declare a boolean mute variable and use it to determine when to play clicks.
Copy link to clipboard
Copied
which part must i change/add to my code
Copy link to clipboard
Copied
eg,
var mute:Boolean;
you probably havve a mute toggle in your app, where you would us
mute=!mute;
then wherever you have code (on the main timeline) to play a sound use
if(!mute){
// play your sound
}