Forum Discussion
KariRobideau
12 years agoCommunity Member
Play Audio after all slide layers have been visited
I would like a "summarizing" audio piece to play after all of the slide layers have been visited. How do I do this?
Nedim
3 months agoCommunity Member
This approach could potentially cause the audio to play before all the buttons are clicked, as the SlidesVisited variable increases by 1 whenever any slide is visited. For example, if the first button is clicked twice visiting the first slide before all buttons are clicked, the audio will play as soon as SlidesVisited reaches 4, even if not all buttons have been clicked yet. A more efficient approach would be to create individual variables like Slide1Visited, Slide2Visited, etc., each set to False initially and changing to True when the respective slide is visited. Then, play the audio when the timeline starts, but only if all the variables are True