From the main toolbar, click Project > Advanced Actions or hit Shift+F9.
- Captivate Classic User Guide
- Introduction to Captivate
- Captivate Classic Release Notes
- Create Projects
- Create different types of projects in Adobe Captivate
- Customize the size of an Adobe Captivate project
- Responsive Project Design with Adobe Captivate
- Create Virtual Reality (VR) projects
- Work with responsive text in Adobe Captivate
- Work with themes in Adobe Captivate
- How to apply view specific properties in responsive projects
- How to create backup files for Adobe Captivate projects
- Asset panel
- Create branching and forced navigation in Captivate
- Replace image on the stage
- Add and Manage Objects
- Work with multi-state objects in Adobe Captivate
- Object effects
- Insert web objects in Adobe Captivate projects
- Work with object styles in Adobe Captivate
- How to rotate objects in Adobe Captivate
- How to manage objects with the Main Options toolbar
- How to merge objects in a slide
- How to manage objects in the library
- How to group objects in Adobe Captivate
- Edit object information using the Advanced Interaction panel
- How to copy, paste, and duplicate objects in Adobe Captivate
- Control the visibility of objects
- How to change the display order of objects in Adobe Captivate
- Apply shadows to objects
- How to align objects in Adobe Captivate
- How to add reflection to objects in Adobe Captivate
- Import assets into a Captivate project
- Slides
- Add slides to an Adobe Captivate project
- Editing slides in an Adobe Captivate project
- Delete Adobe Captivate project slides
- Change slide order in Adobe Captivate
- Set slide properties in Adobe Captivate
- Add and convert slide notes to audio files with Adobe Captivate
- Set up knowledge check slides in Adobe Captivate
- How to add slide transitions in Adobe Captivate
- How to work with master slides in Adobe Captivate
- How to lock Adobe Captivate slides
- How to hide or exclude slides in an Adobe Captivate project
- How to group and ungroup slides in Adobe Captivate
- Timeline and grids
- Create Quizzes
- Insert question slides in Adobe Captivate projects
- Set quiz preferences for Adobe Captivate
- How to enable learners to submit all quiz responses simultaneously
- How to set up question slides with Adobe Captivate
- Using random question slides in Adobe Captivate
- How to allow users to return to quiz
- Import questions from CSV format files
- Import questions from GIFT format files
- How to insert pretests in Adobe Captivate
- Audio
- Video
- Interactive Objects
- Interactions
- Non-interactive objects
- Create and edit smart shapes
- Edit and create text captions with Captivate
- How to use images and rollover images with Captivate
- How to customize smart shapes in Adobe Captivate
- How to create zoom areas in Adobe Captivate
- How to set audio for noninteractive objects
- How to create rollover slidelets in Adobe Captivate
- How to create rollover captions in Adobe Captivate
- Change mouse properties in Adobe Captivate
- Use highlight boxes in Captivate
- Work with swatches in Adobe Captivate
- Fix size and position of non-interactive objects
- Add animations to a Adobe Captivate project
- Advanced Editing and Project Reviews
- Variables and Advanced Actions
- Record Projects
- Publish Projects
- Preview and publish responsive projects
- Publish project to Adobe Captivate Prime
- Publish projects as HTML5 files with Adobe Captivate
- Publish projects as executable files
- Publish projects as MP4 files with Adobe Captivate
- Set publishing preferences in Adobe Captivate
- Using web fonts from Adobe Fonts in Adobe Captivate
- Report quiz results to an internal server
- Use Adobe Captivate with Other Applications
- Import and edit PowerPoint presentations in Captivate
- Upload an Adobe Captivate project to a Learning Management System
- Learn about the Common JavaScript interface for Adobe Captivate
- How to publish Captivate projects to Microsoft Word
- Using Adobe Connect with Captivate
- How to add Captivate projects to a RoboHelp online help system
- How to package multiple SCOs using the Adobe Multi-SCORM Packager
- Troubleshoot Adobe Captivate
- Resolve known issues and limitations in the latest versions of Adobe Captivate, Adobe FrameMaker, and Adobe RoboHelp.
- Early build for Captivate (2019 release) on macOS Big Sur (macOS 11)
- Hotfix for VR content not playing on devices
- Configure SSL for Live Preview on Devices
- Captivate (2019 release) activation issues on macOS Catalina
- Captivate responsive courses will not auto-play on browsers
- Issues with Asset panel in Adobe Captivate (2019 release)
- Error 103 while installing Adobe Captivate
- Issues when previewing a Captivate project
- Resolve known issues and limitations in the latest versions of Adobe Captivate, Adobe FrameMaker, and Adobe RoboHelp.
Use Advanced Actions in Captivate Classic
If you want to create an engaging and interesting eLearning project, look no further than advanced actions in Captivate Classic. With advanced actions, you can create both complex and simple event-based interactions based on one or multiple conditions.
You can use advanced actions with system and custom variables, text entry boxes, mathematical expressions, quizzing, and widgets.
The scripting for the advanced actions model in Adobe Captivate Classic 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 Classic helps you script custom actions for interactive objects.
Advanced actions in Captivate Classic can be categorized into two main actions:
- Standard actions
- Conditional actions
In Captivate Classic 9 and previous versions, you could choose the type of action (Standard or Conditional) from the Action Type drop-down list.
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 Classic.
A standard action is a sequence of events that triggers one or more events. The difference between a standard action and a single action is that in a single action, you can only execute one action executed by an event.
Creating a standard action
-
-
In the Advanced Actions dialog, the following labels describe the items on the dialog.
Label Description 1 Name of the action. 2 Enable this check-box to make the action conditional.
3 Action items. 4 Choose an existing action.
5 Preview the structure of the action.
6 Create an action.
7 Import a shared action.
8 Export a shared action. 9 Delete an action. 10 Duplicate an action.
11 Add an action item. 12 Delete an action item.
13 Copy an action item.
14 Cut
15 Paste 16 Insert 17 Move up.
18 Move down.
19 Decision group. 20 Add a decision.
21 Remove a decision. 22 Duplicate a decision. -
Assign a name to the action and create action items. As an example, create a standard action that mimics the launch of a rocket. When you click a button, the rocket takes off.
-
On an empty slide, perform the following:
a. Insert an image of a rocket and assign an identifier, for example, rocket.
b. Insert an image of a rocket with fuel propulsion and assign an identifier, for example, rocket_fuel.
c. Make the object rocket_fuel invisible.
d. Insert a smart shape and convert it to a button. On button click event, assign an advanced action.
e. On the Advanced Actions dialog, hide the object rocket, show the object rocket_fuel, and apply effects to rocket_fuel, so that the rocket appears to fly upwards. See the demo below to understand the workflow.
Example 1: Standard action – Send email
In this example, when you click a button, your default mail client opens with the To, Subject, and the email body pre-populated.
On button click success, create an Advanced Action and choose the Send Mail option in the Actions panel. Enter the email parameter, example@example.com?subject=Example%20subject%20line&body=Sample%20mail%20body, as shown below:
Save the action and preview the project. When you click the button, your default mail client opens and is populated in the fields provided as specified in the email parameter.
Example 2: Standard action – Execute JavaScript
In this example, when you click a button, an Advanced Action containing a piece of JavaScript code executes producing the desired result.
For more information, see Common JavaScript interface of Captivate Classic.
Launch the Advanced Actions panel and assign Execute JavaScript as action and write the following snippet to get the current frame of the movie:
alert(window.cpAPIInterface.getCurrentFrame());
When you preview the project and on clicking the button, you get the following pop-up:
Conditional action
A conditional action in the Advanced Actions panel depends on whether a statement executes if a certain condition is met. For example,
if (totalMarks<=80) { print(“Take the test again”)’ } else { print(“Congratulations!You have passed”); }
In your eLearning projects, you can add greater interactivity depending on certain pre-defined conditions.
Creating a conditional action
-
From the main toolbar, click Project > Advanced Actions, or hit Shift+F9.
-
Select the Conditional Tab check-box. When you enable the option, you can see the if-else condition blocks and the actions area. Choose any of the conditional expressions with the if statement, as shown below:
-
In the Advanced Actions dialog, the following labels describe the items on the dialog.
Label
Description
1
If block. Check the conditions in this block. For example, if a is equal to b.
2
Action block. The actions to execute if the above condition or conditions return true.
3
Else block. The actions to execute if the above condition or conditions return false.
4
Decision blocks. You can combine a conditional action with a standard action. Place the standard action in a second decision block.
5
Add a decision.
6
Remove a decision.
7
Duplicate a decision.
8
Select to choose action type for if.
Conditional action – While
For example, use the while statement to check the validity of a user name and password. Open the Advanced Actions dialog and choose While from the Perform actions drop-down list. Assign the following:
Save the action and preview the project. You stay on the login page until you enter the correct user name-password pair.
Variables in conditional statements
Before moving on to examples, let us look at the concept and application of variables in conditional statements. A variable is a value that can change, depending on conditions or on information passed to the program or application. In Captivate Classic, variables store values and you can usually change those values using advanced actions.
For example, when a=5, a stores 5 in a memory location. a retains its value until a piece of code changes the value to something else.
In Captivate Classic, there are two types of variables:
System variables: System variables come pre-defined with Captivate Classic. You cannot create or modify a system variable. These variables enable you to modify what your e-learning module, is doing at runtime. For example, if you assign a number to the variable cpCmndGotoSlide, at runtime, you would be taken to the slide as specified by you.
User variables: These are variables that you, the author, can create and name as you choose. User variables are project-specific.
Creating and modifying a user variable
-
Click Project > Variables.
-
To create a variable, on the Variables dialog box, click Add New. Type the name of the variable and assign it a value.
-
Use the variable in your project. For example, displaying the value at runtime. Insert a text component in a slide and add some text.
-
Insert the variable and concatenate to the text above. Click Insert Variable [X] in the Property Inspector panel and choose the variable.
The slide now looks, as shown below:
The variable is enclosed by two $ signs which are special identifiers for variables.
-
Preview the project. At runtime, you can see that the value of the variable gets displayed.
-
To use the variable in an Advanced Action, for example, insert a button in the slide, and assign it to execute an Advanced Action on a click event.
-
Launch Advanced Actions and provide the following information in the if-else block.
In this Advanced Action, when you click the button and if the value of the variable is “Hello World”, then a new browser window launches the google.com search page.
-
To modify a variable, open the Variables dialog box and select the variable you want to change. Click Update.
Note:You cannot edit the variable's name. Edit the Value or Description fields as needed and then click the Update button.
Conditional statement: Example 1 – Toggle visibility of an object
In this example, when you click a button, an object disappears and reappears when you click the button again. Perform the following steps:
-
Declare a variable myVar with value equal to 0.
-
Create an advanced action B1 where:
-
If the value of myVar is equal to 0
-
Then hide the object and assign the value of myVar to 1.
-
Else show the object and assign the value of myVar back to 0.
-
Save the action and preview the project. You can see that when you click the button, the object disappears and appears again when you click the button again.
-
Condition statement: Example 2 – Checking the validity of a user name and password
In this example, if you enter the correct user name and password, you are taken to a welcome slide. If you enter an incorrect user name or password or both, you are taken to a different slide. Execute the following steps:
-
Declare two variables, uName and pWord with the values “test” and “password” respectively.
-
Create an advanced action, A1, where:
-
If the value of uName is equal to “test” and the value of pWord is equal to “password”
-
Then perform the following actions, as shown below:
-
Else move to a different slide, as shown below:
-
Save the action and preview the project.
-
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
-
Select Project > Advanced Actions.
-
In the Existing Actions, select the action that you want to modify or delete.
-
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 upper-right corner of the Advanced Actions dialog box.
- To preview the conditional action, click the Preview icon at the upper-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
-
Select Project > Advanced Actions.
-
In the Existing Actions, select the action.
-
Click Usage.
The slides in the project that use the selected script are displayed.
Apply advanced actions to slides
-
In the Property Inspector (Window > Properties), go to Action.
-
Select Execute Advanced Actions.
-
In Script, select the script that you want to run from the Action menu.
Apply advanced actions to interactive objects
-
In the Property Inspector (Window > Properties), go to Action.
-
In the action menu, select Execute Advanced Actions. Examples of actions are On Success, On Failure, and Lose Focus.
-
In Script, select the script that you want to run from the Action menu.
Download sample projects
To learn more about Captivate Classic and how you can create engaging learning content, download the following projects: