Toggling audio on and off with variables on several slides
- January 6, 2022
- 1 reply
- 478 views
Hello everyone:
I need help with a project that has seven slides. Each slide has three audio buttons (vocab_audio_1_1, vocab_audio_1_2, vocab_audio_1_3). Each button has two states, normal (play audio) and visited (stop audio).
1. Initially, I set three variables (audio01, audio02, and audio03) each with an initial value of 0. Each slide has an advanced action script that resets all three variables.
2. I created an advanced action script with conditional (see screen shots). When one audio button is clicked, the audio plays and the visited states shows up. In addition, the other two audio buttons change to normal state.
3. I tested that action script and it worked fine on the first slide. Then, I decided to convert it to a shared script.
4. I used the shared script for all the slides (changing the select variables), but when moving to the second and other slides, the toggling action did not work properly.
5. I added variables for each audio button, but it didn't work.
Any suggestions?
Sincerely,
