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.
//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