# setVolume() Issues

**URL:** https://forum.kirupa.com/t/setvolume-issues/190001
**Category:** flash
**Created:** [June 7, 2006, 10:28pm UTC](https://forum.kirupa.com/t/setvolume-issues/190001 "2006-06-07T22:28:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Tokien](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@Tokien](https://forum.kirupa.com/u/Tokien)
#### Post date: [June 7, 2006, 10:28pm UTC](https://forum.kirupa.com/t/setvolume-issues/190001/1 "2006-06-07T22:28:49Z")

</div>

I’m having an issue with the **setVolume()** function.  
My problem is that when I set volume of a specified sound object the entire flash file is affected, meaning that all sounds are affected (The ones created by AS). Not just the single sound I specified.

Here’s the line, which “_mutes_” the sound:

```auto
 music_main.setVolume(0);

```

The ‘_music\_main_’ object is created through these lines:

```auto

 
   music_main = new Sound();
   music_main.attachSound("MAIN_THEME");
 

```

Now my problem is what I stated above. All Sound Objects created are affected by the **setVolume()** function. I only want to change the ‘_music\_main_’ object.

Any ideas?

Thanks in Advance…
