Skip to main content
Participant
August 18, 2025
Question

Audio Toggle Button, Event Listener for triggered audio completion

  • August 18, 2025
  • 0 replies
  • 86 views

I am using the latest Adobe Captivate 12.6

 

Is it possible to get an event listener for when triggered audio completes and adjust a variable accordingly.

I am trying to setup a toggle button for triggered audio.
I have a slide, an audio variable (true, false) and a button to play audio.

When the learner clicks on the audio button, if sets the audio variable to true and plays an audio clip.
If the audio variable is already true, then it sets it to false and stops the audio.

This works fine but....
My issue is when leaner clicks on the audio button, it sets the audio variable to true and plays the audio but when the audio ends on its own, there is no way to set the audio variable back to false so when the learner clicks on the audio button again, the variable is still set to true so it sets it to false and stops the audio (which was already stopped on it's own).

I tried setting the setting a delayed action which would adjust the audio variable back to false after the delayed time that would equal the length of the audio clip but setting a delayed action is reserved for animation and other actions but not for adjusting variables.