i'm creating a soundboard in Flash AS2, and i need that only one sound plays at a time, so if i play button 1, and then press button 2, button 1 sound stops and i listen to button 2 only. i'm making a test with 6 buttons, all of them in the same frame. i've found many answers responding that i would need to use on (press) {stopAllSounds () ; } on each button. so i did that, but now all sounds, including the one i'm trying to play, are stopped. so i end up hearing nothing. any ideas on how to solve this? thanks.
Asked
Active
Viewed 370 times
2 Answers
0
Put one sound into a timeline to one movieclip. And use stop and play. So to stopAll but not current use an array wich content all movieclip sound avbove defined.

Álvaro Touzón
- 1,247
- 1
- 8
- 21
-
thanks man, but i didn't understand a thing, lol. i forgot to say that i'm a noob. so you mean to use every sound button on a different timeline?there are a lot, and i mean a lot of sounds.... – AdamXpelled Mar 13 '17 at 19:36
-
yes create a one movieclip for one sound drag then sound into his timeline and use play stop – Álvaro Touzón Mar 13 '17 at 19:37
-
well, ok thanks. if i can't find another answer i may have to do that. – AdamXpelled Mar 13 '17 at 19:40
0
got the answer! just put this code on the frame where your sounds are located:
onMouseDown = function () {
stopAllSounds(); };
done.

AdamXpelled
- 27
- 8