Button to Play MP3 (not as easy as I thought)

My project has 15 buttons. Each button triggers an MP3 file about one minute long to play. That's the easy part. When I press a button, I want to stop playing any other audio file that may already be playing. I cannot figure out how to do this. The audio files play on top of each other. I can't make the button stop playing an audio file which is already playing, and I don't know which audio file may be playing.

Does anyone have any suggestions? Thank you.

3 Replies
Maria Costa-Stienstra

Hi, Jim.

Thank you for reaching out!

Tom's suggestion above is ideal, but I wanted to offer an alternative, in case you wanted to keep the audio on the base layer:

  • Create a layer that stops all audio when the timeline starts:

Windows 10 (1) 2022-03-14 at 10.04.05 AM

  • Add the trigger to Show this layer (in the example above, it's called Stop Audio) to each button that also plays audio. The order of triggers is important here, as you will want the show layer trigger to execute first:

Windows 10 (1) 2022-03-14 at 10.05.58 AM

I hope this helps!