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.
The easiest way to handle this is to place the audio files on their own layers. That will stop the other layers and you'll only hear one track at a time
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:
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:
3 Replies
The easiest way to handle this is to place the audio files on their own layers. That will stop the other layers and you'll only hear one track at a time
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:
I hope this helps!
Awesome - thank you both for the advice.
I just made the changes that Maria suggested and it worked perfectly.