Beenden
  • Globale Community
    • Sprache:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티

Is there a way to trigger an advanced action via custom JavaScript?

Entdecker ,
Mar 16, 2016 Mar 16, 2016

I would like to have my custom JavaScript trigger "normal" Captivate actions. 

This could be useful in a lot of ways, but what I would like to do right now is to play an audio clip when certain conditions are met (a conditional advanced action is too clunky for my needs).

Any way to do this? Thanks!

383
Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines

correct answers 1 richtige Antwort

Populärer Benutzer , Mar 16, 2016 Mar 16, 2016

You can trigger an advanced action with JavaScript:

cp.runJavascript(cp.model.data.objectName.oca);

The script is for advanced actions that are attached to objects, if it is a slide enter, you'll need to figure out the current slide id.

 

Übersetzen
Populärer Benutzer ,
Mar 16, 2016 Mar 16, 2016

You can trigger an advanced action with JavaScript:

cp.runJavascript(cp.model.data.objectName.oca);

The script is for advanced actions that are attached to objects, if it is a slide enter, you'll need to figure out the current slide id.

 

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines
Entdecker ,
Mar 16, 2016 Mar 16, 2016
AKTUELL

Ahhhhh! Works perfectly for my purposes. That's going to be a life changer. Thanks!

Übersetzen
Melden
Community-Richtlinien
Seien Sie freundlich und respektvoll, geben Sie die ursprüngliche Quelle der Inhalte an und suchen Sie vor dem Absenden Ihres Beitrags nach Duplikaten. Weitere Informationen
community guidelines