Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Play a sound when a variable value switch to TRUE

Community Beginner ,
Aug 10, 2015 Aug 10, 2015


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

TOPICS
Advanced
203
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 10, 2015 Aug 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Aug 10, 2015 Aug 10, 2015
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources