mute sound? how?
- Started
- Last post
- 5 Responses
- Spix
erhhmm....sorry...here come another flash question. I been looking for it before though.
I want to be abel to mute sound...so when you mute it and turn it back on i want the sound to start up where it should of been if not muted. The sound file is not looping..it is syncronized with a talking head (an animated talking head) therefore it should still be syncronized when it is swiched back on.
how do i do that?
- ********0
mySound.setVolume(0);
then when you want to unmute it.
mySound.setVolume(100);
just because the volume is 0 doesn't mean it isn't playing.
you're welcome.
- Spix0
thanks man....your my hero :)
- Spix0
hmm...it dont work :(
i got this in the scene1. the buttons are in a mc with instance name sounds:
sounds.btnSoundOff.onRelease = function() {
mySound.setVolume(0) ;
};
- Spix0
*bump*
- connerd0
you need to start the sound using a scripted sound object. if you've started it via the timeline, the aforementioned technique won't work.
look it up in the flash context help (F1). it'll sort you out.