Kullanıcı Kılavuzu İptal

Advanced actions in Adobe Captivate Classic

  1. Captivate Classic User Guide
  2. Introduction to Captivate
    1. What's New in Adobe Captivate
    2. Adobe Captivate System Requirements
    3. Responsive Project Design with Adobe Captivate
  3. Captivate Classic Release Notes
    1.  Adobe Captivate Classic 11.8.3 Release Notes
    2. Adobe Captivate Classic 11.8.2 Release Notes
    3. Adobe Captivate 11.8.1 Release Notes
    4. Adobe Captivate 11.8 Release Notes
    5. What's New in Adobe Captivate (2019 release) Update 5
    6. What's New in Adobe Captivate (2019 release) Update 2
    7. Adobe Captivate Release Notes
  4. Create Projects
    1. Create different types of projects in Adobe Captivate
    2. Customize the size of an Adobe Captivate project
    3. Responsive Project Design with Adobe Captivate
    4. Create Virtual Reality (VR) projects
    5. Work with responsive text in Adobe Captivate
    6. Work with themes in Adobe Captivate
    7. How to apply view specific properties in responsive projects
    8. How to create backup files for Adobe Captivate projects
    9. Asset panel
    10. Create branching and forced navigation in Captivate
    11. Replace image on the stage
  5. Add and Manage Objects
    1. Work with multi-state objects in Adobe Captivate
    2. Object effects
    3. Insert web objects in Adobe Captivate projects
    4. Work with object styles in Adobe Captivate
    5. How to rotate objects in Adobe Captivate
    6. How to manage objects with the Main Options toolbar
    7. How to merge objects in a slide
    8. How to manage objects in the library
    9. How to group objects in Adobe Captivate
    10. Edit object information using the Advanced Interaction panel
    11. How to copy, paste, and duplicate objects in Adobe Captivate
    12. Control the visibility of objects
    13. How to change the display order of objects in Adobe Captivate
    14. Apply shadows to objects
    15. How to align objects in Adobe Captivate
    16. How to add reflection to objects in Adobe Captivate
    17. Import assets into a Captivate project
  6. Slides
    1. Add slides to an Adobe Captivate project
    2. Editing slides in an Adobe Captivate project
    3. Delete Adobe Captivate project slides
    4. Change slide order in Adobe Captivate
    5. Set slide properties in Adobe Captivate
    6. Add and convert slide notes to audio files with Adobe Captivate
    7. Set up knowledge check slides in Adobe Captivate
    8. How to add slide transitions in Adobe Captivate
    9. How to work with master slides in Adobe Captivate
    10. How to lock Adobe Captivate slides
    11. How to hide or exclude slides in an Adobe Captivate project
    12. How to group and ungroup slides in Adobe Captivate
  7. Timeline and grids
    1. Use rulers and guides
    2. Work with grids in Adobe Captivate
    3. Work with the timeline
    4. Shortcut keys in Adobe Captivate
    5. Working with the filmstrip
    6. How to customize the Adobe Captivate workspace
    7. How to use the Adobe Captivate Library
    8. How to use the Branching panel in Adobe Captivate
  8. Create Quizzes
    1. Insert question slides in Adobe Captivate projects
    2. Set quiz preferences for Adobe Captivate
    3. How to enable learners to submit all quiz responses simultaneously
    4. How to set up question slides with Adobe Captivate
    5. Using random question slides in Adobe Captivate
    6. How to allow users to return to quiz
    7. Import questions from CSV format files
    8. Import questions from GIFT format files
    9. How to insert pretests in Adobe Captivate
  9. Audio
    1. How to insert audio into an Adobe Captivate project
    2. How to preview audio in Adobe Captivate
    3. How to edit audio files with Adobe Captivate
    4. View audio details in Adobe Captivate
    5. Set audio recording preferences and recording audio
    6. How to export audio from Adobe Captivate
  10. Video
    1. Slide videos
    2. Work with event videos in Adobe Captivate
    3. Differences between events and synchronized videos in Adobe Captivate
  11. Interactive Objects
    1. Add interactive buttons to your Captivate projects
    2. Create click boxes in Adobe Captivate
    3. Add text entry boxes with Adobe Captivate
    4. How to add audio to boxes and buttons
    5. How to add JavaScript to boxes and buttons in Adobe Captivate
  12. Interactions
    1. Create drag-and-drop interactions in Adobe Captivate
    2. Use Adobe Captivate variables in widgets
    3. Set the properties of widgets with Adobe Captivate
    4. How to create static, interactive, and question widgets in Adobe Captivate
    5. How to add widgets to your Adobe Captivate project
  13. Non-interactive objects
    1. Create and edit smart shapes
    2. Edit and create text captions with Captivate
    3. How to use images and rollover images with Captivate
    4. How to customize smart shapes in Adobe Captivate
    5. How to create zoom areas in Adobe Captivate
    6. How to set audio for noninteractive objects
    7. How to create rollover slidelets in Adobe Captivate
    8. How to create rollover captions in Adobe Captivate
    9. Change mouse properties in Adobe Captivate
    10. Use highlight boxes in Captivate
    11. Work with swatches in Adobe Captivate
    12. Fix size and position of non-interactive objects
    13. Add animations to a Adobe Captivate project
  14. Advanced Editing and Project Reviews
    1. How to link Adobe Captivate projects
    2. Import, export, and delete content
    3. Skins
    4. Create accessible projects in Adobe Captivate
    5. Create a table of contents (TOC) with Adobe Captivate
    6. Resize Adobe Captivate projects
    7. Projects and project preferences
    8. How to preview projects in Adobe Captivate
  15. Variables and Advanced Actions
    1. Adobe Captivate variables
    2. How to create user-defined variables in Adobe Captivate
    3. Advanced actions in Adobe Captivate
    4. Shared actions in Adobe Captivate projects
    5. Edit or delete user-defined variables in Adobe Captivate
    6. How to assign advanced actions to an event
  16. Record Projects
    1. Create interactive videos
    2. Automatic and manual recording with Captivate
    3. Set recording preferences in Adobe Captivate
    4. Record video demonstrations with Adobe Captivate
    5. How to record software simulations in Adobe Captivate
    6. How to pause recording
  17. Publish Projects
    1. Preview and publish responsive projects
    2. Publish project to Adobe Captivate Prime
    3. Publish projects as HTML5 files with Adobe Captivate
    4. Publish projects as executable files
    5. Publish projects as MP4 files with Adobe Captivate
    6. Set publishing preferences in Adobe Captivate
    7. Using web fonts from Adobe Fonts in Adobe Captivate
    8. Report quiz results to an internal server
  18. Use Adobe Captivate with Other Applications
    1. Import and edit PowerPoint presentations in Captivate
    2. Upload an Adobe Captivate project to a Learning Management System
    3. Learn about the Common JavaScript interface for Adobe Captivate
    4. How to publish Captivate projects to Microsoft Word
    5. Using Adobe Connect with Captivate
    6. How to add Captivate projects to a RoboHelp online help system
    7. How to package multiple SCOs using the Adobe Multi-SCORM Packager
  19. Troubleshoot Adobe Captivate
    1. Resolve known issues and limitations in the latest versions of Adobe Captivate, Adobe FrameMaker, and Adobe RoboHelp.
    2. Early build for Captivate (2019 release) on macOS Big Sur (macOS 11)
    3. Hotfix for VR content not playing on devices
    4. Configure SSL for Live Preview on Devices
    5. Captivate (2019 release) activation issues on macOS Catalina
    6. Captivate responsive courses will not auto-play on browsers
    7. Issues with Asset panel in Adobe Captivate (2019 release)
    8. Error 103 while installing Adobe Captivate
    9. Issues when previewing a Captivate project

  • Now available : Mac OS Catalina compatible Adobe Captivate update for 2019 release users . Get update now!
  • Asset Panel not loading in Adobe Captivate (2019 release)? Read More to find a solution.

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
Not:

In Captivate Classic 9 and previous versions, you could choose the type of action (Standard or Conditional) from the Action Type drop-down list.

Advanced Actions in Captivate Classic 9
Advanced Actions in Captivate Classic 9

Conditional Tab check-box in the 2017 release of Captivate Classic
Conditional Tab check-box in the 2017 release of Captivate Classic

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

  1. From the main toolbar, click Project > Advanced Actions or hit Shift+F9.

    Advanced Actions menu option
    Advanced Actions menu option

  2. In the Advanced Actions dialog, the following labels describe the items on the dialog.

    Advanced Action components
    Advanced Action components

    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.
  3. 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.

  4. 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:

Action to send email
Action to send email

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.

Default email client
Default email client

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());
JavaScript editor
JavaScript editor

When you preview the project and on clicking the button, you get the following pop-up:

Pup-up of result
Pup-up of result

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

  1. From the main toolbar, click Project > Advanced Actions, or hit Shift+F9.

    Advanced Actions menu option
    Advanced Actions menu option

  2. 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:

    Conditional action options
    Conditional action options

  3. In the Advanced Actions dialog, the following labels describe the items on the dialog.

    Advanced Action components
    Advanced Action components

    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

Conditional Actions
Conditional Actions

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:

While action
While action

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

  1. Click Project > Variables.

    Variables menu option
    Variables menu option

  2. To create a variable, on the Variables dialog box, click Add New. Type the name of the variable and assign it a value. 

    Add new variable
    Add new variable

  3. Use the variable in your project. For example, displaying the value at runtime. Insert a text component in a slide and add some text.

    Displaying value of variable
    Displaying value of variable

  4. Insert the variable and concatenate to the text above. Click Insert Variable [X] in the Property Inspector panel and choose the variable.

    Insert variable
    Insert variable

    The slide now looks, as shown below:

    Slide display
    Slide display

    The variable is enclosed by two $ signs which are special identifiers for variables.

  5. Preview the project. At runtime, you can see that the value of the variable gets displayed.

    Display at runtime
    Display at runtime

  6. 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.

  7. Launch Advanced Actions and provide the following information in the if-else block.

    If-else action
    If-else action

    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.

  8. To modify a variable, open the Variables dialog box and select the variable you want to change. Click Update.

    Update value of a variable
    Update value of a variable

    Not:

    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:

  1. Declare a variable myVar with value equal to 0.

    Declare a variable
    Declare a variable

  2. Create an advanced action B1 where:

    1. If the value of myVar is equal to 0

    2. Then hide the object and assign the value of myVar to 1.

      Hide and assign value to a variable
      Hide and assign value to a variable

    3. Else show the object and assign the value of myVar back to 0.

      Else statement
      Else statement

    4. 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:

  1. Declare two variables, uName and pWord with the values “test” and “password” respectively.

  2. Create an advanced action, A1, where:

    1. If the value of uName is equal to “test” and the value of pWord is equal to “password”

    2. Then perform the following actions, as shown below:

      Using Then options
      Using Then options

    3. Else move to a different slide, as shown below:

      Using Else options
      Using Else options

    4. 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

  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 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

  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.

Download sample projects

To learn more about Captivate Classic and how you can create engaging learning content, download the following projects:

More like this

 Adobe

Daha hızlı ve daha kolay yardım alın

Yeni kullanıcı mısınız?