# Sound Issues

**URL:** <https://forum.kirupa.com/t/sound-issues/205111>\
**Category:** flash\
**Created:** [October 26, 2006, 10:10am UTC](https://forum.kirupa.com/t/sound-issues/205111 "2006-10-26T10:10:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashDan](https://avatars.discourse-cdn.com/v4/letter/f/df788c/32.png) [@FlashDan](https://forum.kirupa.com/u/FlashDan)\
**Post date:** [October 26, 2006, 10:10am UTC](https://forum.kirupa.com/t/sound-issues/205111/1 "2006-10-26T10:10:05Z")

</div>

Hey everyone,

I have a problem with the way flash is handling my sounds. I’m running background music (looped) and then sound clips played throughout. This is for a game.

Below is my code. The problem is all the sound works but when sound is played at the same time, for instance if the background music is playing then a sound plays the volume of the background music increases/decreases.

```auto

//enemy dies
var enemydie:Sound = new Sound();
enemydie.attachSound("enemydie");

_root.enemydie.start();
_root.enemydie.setVolume(50);

//background music
var bg_sound:Sound = new Sound();
bg_sound.attachSound("bg_sound");

_root.bg_sound.start("","999");
_root.bg_sound.setVolume(15);

```

Any help is much appreciated.

-Dan
