Mute sound on timeline
We have a movie clip containing a set of sound files. All sound is on the timeline. We have tried the following, but none works. Can anyone help? Thanks!
[ on the frame where the sound starts]
if (deactivate) {
SoundMixer.stopAll();
}
or
[ first frame of movie clip]
var sndTransform:SoundTransform = new SoundTransform();
SoundMixer.soundTransform = sndTransform;
[ on the frame where the sound starts ]
if (deactivate) {
sndTransform.volume = 0;
} else {
sndTransform.volume = 1;
}