Trouble playing sound on mouse release

I’m having trouble getting buttons to play sounds when pressed. It works when I just have one button. However I have multiple buttons that need to play diff’t sounds.

I’d appreciate it if someone would take a look at my file. I’m confused. Thanks.

Hi,

I don’t have time to look at your file, but it looks like your problem is that you are not targeting your sound object to an specific MC.
When creating the sound object rather than non targeting it :

[AS]yourSound = new Sound();[/AS]

create an empty movie clip or make one and place it on the stage,
call it my ‘SoundContainer’ (or whatever) and make it the target of your sound object :

[AS]yourSound = new Sound(SoundContainer);
yourSound.attachSound(“soundIDInLibrary”);
[/AS]

this way you can control all the different sounds independently.

Hope it helps

SHO