Skip to main content
Participating Frequently
August 10, 2015
Question

Play a sound when a variable value switch to TRUE

  • August 10, 2015
  • 2 replies
  • 232 views


Hi to everyone,

I want a sound file to be played only when a variable value change form FALSE to TRUE. This variable (I named it "countdown") is associated with the "Timer" widget (the one Captivate offers).

So, when the timer start, "countdown" value is FALSE. The value will switch to "TRUE" when the countdown time specified into the widget will be reached. The sound file should then be played.

Anyone knows how can I do that?

Thanks!

Jean Laurier

This topic has been closed for replies.

2 replies

TLCMediaDesign
Inspiring
August 10, 2015

I think you'll need to look into the onVariableChange event listener to do this.

You'd more than likely need to play the sound with JavaScrpt then.

Lilybiri
Legend
August 10, 2015

Even then you should need a trigger if you are talking about the old timer widget. If you are using the timing or hourglass interaction, it can jump to another slide where you can use the Play audio command or use an audio object. However there is a delay of 3secs, where the warning message appears.

Sent from my iPad