# Sound object turns off all sounds. why?

**URL:** <https://forum.kirupa.com/t/sound-object-turns-off-all-sounds-why/153428>\
**Category:** Uncategorized\
**Created:** [July 1, 2005, 11:29am UTC](https://forum.kirupa.com/t/sound-object-turns-off-all-sounds-why/153428 "2005-07-01T11:29:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djrez](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@djrez](https://forum.kirupa.com/u/djrez)\
**Post date:** [July 1, 2005, 11:29am UTC](https://forum.kirupa.com/t/sound-object-turns-off-all-sounds-why/153428/1 "2005-07-01T11:29:49Z")

</div>

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)  
}
