# setVolume problem

**URL:** <https://forum.kirupa.com/t/setvolume-problem/307569>\
**Category:** Uncategorized\
**Created:** [April 6, 2010, 7:08am UTC](https://forum.kirupa.com/t/setvolume-problem/307569 "2010-04-06T07:08:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sourcesoft](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@sourcesoft](https://forum.kirupa.com/u/sourcesoft)\
**Post date:** [April 6, 2010, 7:08am UTC](https://forum.kirupa.com/t/setvolume-problem/307569/1 "2010-04-06T07:08:07Z")

</div>

hi  
I tried to control a background music volume using this code

```auto

soundInstance = new Sound();
soundInstance.attachSound("1");
soundInstance.start(0,999);
_root.soundInstance.setVolume(10);

```

here attachSound(“1”);  
“1” is a linkage identifier. everything works perfect…music plays and volume decreases.  
but not only the attached sound… the whole movie volume changes even the swf I’ve loaded in my clip. I just need to control the background music(“1” linkage) not all the sounds. what’s the problem here? how can I make this happen?

thank you
