So I have 20 buttons on a page..and i want it so that a certain button when i click it.. it starts a sound and cuts off all the other ones that may have been playing...this is my code...

on (press) {
stopAllSounds();
}
on (release) {
mySound.attachSound("sound");
mySound.start();
}


..but it doesn't work

what am i doing wrong?

I made sure to enable action script in the linkage library too