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

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

Explorer ,
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!

348
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

correct answers 1 Correct answer

People's Champ , 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.

 

Translate
People's Champ ,
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.

 

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
Explorer ,
Mar 16, 2016 Mar 16, 2016
LATEST

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

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