I have a button that sets _root.soundstatus on and off. My problem is, ALL my sounds are turning down. Why? Button sounds, and other sounds. These other sounds are not linked, they are on timelines and right in buttons. I just want the music sound loop01id to fade out and have my other sound effects still on. Please help me correct this code. Thanks.
onClipEvent (load) {
var loop01_sound:Sound = new Sound();
loop01_sound.attachSound(“loop01id”);
maxvolume = 100;
minvolume = 0;
_root.soundstatus = “on”;
loop01_sound.start(0,999);
}
onClipEvent (enterFrame) {
if (_root.soundstatus == “on”) {
step = 3;
}
if (_root.soundstatus == “off”) {
step = -3;
}
maxvolume += step;
if (maxvolume>100) {
maxvolume = 100;
}
if (maxvolume<0) {
maxvolume = 0;
}
loop01_sound.setVolume(maxvolume)
}