You can use scripting in Adobe Captivate to do the following:

  • Enhance the interactivity of Adobe Captivate projects by handling complex, and condition-based interaction scenarios.

  • Control the movie.

Advanced Actions model

The scripting for the advanced actions model in Adobe Captivate is based on the Object-Event-Action model.

Events on an interactive object, such as mouse-clicks, trigger actions that are defined for that event. You can handle complex interaction scenarios by scripting your own actions and applying them to the various interactive objects. The scripting editor in Adobe Captivate helps you script custom actions for interactive objects.

You can use the following options to define actions for interactive objects in Adobe Captivate:

Conditional Action

Provide if … else conditions with 'and', or 'or' operators when scripting actions.


Standard Action

Use a single script to run multiple actions in a sequence. Although the user interface provides a way to run multiple actions, it is restricted to the actions available in Adobe Captivate. During scripting, it is possible for you to combine actions defined during scripting with predefined actions in Adobe Captivate.



Create advanced actions

  1. Select Project > Advanced Actions.

  2. Select the action type:

    Conditional Action

    To create an if … else condition for your script.

    Standard Action

    To customize one of the predefined actions in Adobe Captivate.

  3. In the Action Name, specify a name for the action.

  4. Click the add icon.

  5. Complete writing the code with the supplied options. Any option that has not been assigned a value is indicated by the red icon. If you do not set these values, it results in an error when you try to save the script.

  6. Click Save to save the script.

Edit statements

  • When editing a script, use the appropriate icons to add, remove, copy, cut, paste, insert, or move a statement (a line of code).

  • Use the drop-down list to change the type from Variable to Literal, or the other way round.

  • To remove a decision, select the decision and then click the delete icon.

Edit/delete/duplicate advanced action

  1. Select Project > Advanced Actions.

  2. In the Existing Actions, select the action that you want to modify or delete.

  3. Do one of the following:

    • Use the appropriate icon at the upper-right corner to delete or duplicate the action

    • To update the advanced action, use the appropriate menu icons to update the statements and then click Update.

Manage conditional actions

  • To add a decision tab, click +.
  • To delete a decision tab, click the tab, and then click '-'.
  • To duplicate a decision tab, click the Duplicate Decision tab.
  • To reorder the decision tabs, use the Move Left and Move Right icons.
  • To duplicate the entire conditional action (all decision tabs), click the Duplicate Action icon at the top right corner of the Advanced Actions dialog box.
  • To preview the conditional action, click the Preview icon at the top right corner of the Advanced Actions dialog box.

Copy Advanced Actions

You can copy an Advanced Action into another project by copying the objects or slides associated with the Advanced Action and pasting them in the target project.


In a project, Advanced Actions can be called from various objects or triggered by many events. The following table summarizes the different scenarios and indicates whether the associated Advanced Actions can be copied:

Advanced Actions associated with... Can be copied?
Objects Yes
Slides/Question slides Yes
Question pools No
Project Preferences (Quiz Pass/Fail) No

While copying a slide or an object associated with an advanced action, ensure that you copy all objects or slides that are referenced within the Advanced Action. For example, consider that an Advanced Action "MyAction" is associated with a button. The action contains a 'Show' action that displays an image 'Flower', and a 'Hide' action that hides an image 'Mango'. Now, if you need 'MyAction' in another project, copy the slide containing the button, and the slides containing the images 'Flower' and 'Mango'. Then, paste them into the project.

If Advanced Action includes this action... ...then...
Play Audio The audio file is copied into the target project
Variables The variables are copied into the target project. If a variable configured in the Advanced Action does not exist in the target project, the variable is automatically created. If a variable exists with the same name, a new variable with the same name suffixed with a number is created.
Jump to Slide The Advanced Action is successfully copied only if the target slide is already copied into the target project.

Finding slides in which the script is used

  1. Select Project > Advanced Actions.

  2. In the Existing Actions, select the action.

  3. Click Usage.

The slides in the project that use the selected script are displayed.

Apply advanced actions to slides

  1. In the Property Inspector (Window > Properties), go to Action.

  2. Select Execute Advanced Actions.

  3. In Script, select the script that you want to run from the Action menu.

Apply advanced actions to interactive objects

  1. In the Property Inspector (Window > Properties), go to Action.

  2. In the action menu, select Execute Advanced Actions. Examples of actions are On Success, On Failure, and Lose Focus.

  3. In Script, select the script that you want to run from the Action menu.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy