Forum Discussion
JillFreeman
13 years agoCommunity Member
How to prevent audio from playing when returning to slide
Hello! I would like to find an elegant way to prevent the audio from playing if a user returns to a "main menu" slide.
Let's say that I have a slide that requires a user to view 4 scenarios by c...
AlyssaGomez
8 years agoStaff
Hi Johnna! Thanks for your question!
I would use a variable to play the audio only when the learner first visits the slide. Here's how I would set that up:
- Create a true/false variable named "audioplay".
- Set the default value to false.
- Add this trigger to the drag and drop slide base layer: "Play media [audio] when the timeline starts if the variable audioplay is equal to false."
- Add another trigger to the drag and drop slide base layer: "Adjust variable audioplay to true when the media completes [audio]."
One more tip: if you have multiple drag and drop slides with audio, you'll need a unique variable for each slide.
Give it a try, and let me know how it goes!
- JohnnaHodges-048 years agoCommunity Member
Alyssa,
That worked perfectly! Thank you so much.
- AnnieSpringate-3 years agoCommunity Member
Excellent thank you!
- EdmondManning2 years agoCommunity Member
Hi there, it's the Future, checking in. Tonight you helped me solve a problem that's irritated me, a noob to Storyline. Thank you, thank you! Who knew 7 years later someone would find such a concise well-written answer. I watched 3 min of two different videos before I doubled-down on a non-video solution. Seeing it in writing was essential for me. Thank you!
Related Content
- 11 months ago