If you have Advanced Actions to be applied to similar scenarios within a project or across projects, you can save the script as a template, and reuse them wherever required. For example, an Advanced Action to show/hide items can be saved as a template and reused in click-reveal scenarios or a memory game.
Drag-and-drop Shared Actions from Library on to Objects. Now, you can parameterize variables. You can use variables as parameters and set different values while creating the project. Associate actions to different interactive triggers (Success and OnEnter of objects and Slides).
Note: You can open Adobe Captivate 7 projects in Adobe Captivate 8, and share the Advanced Actions that you have used in those projects.
The shared action becomes available in the Advanced Actions dialog box and as a resource in the Adobe Captivate library. Now your action is ready to be shared within a project or across different projects.
- Insert all the required slides and objects in the project, and then share actions.
- Provide appropriate description for the shared action and parameters to help you easily identify them when you want to reuse.
- Object groups can be used as parameters in shared actions. By doing so, you save both time and effort.
- Do not use custom effects in shared actions.
- Do not use placeholders as parameters in shared actions.
Open the Advanced Actions dialog box (Project > Advanced Actions), and click a shared action from Create From list. The actions from the shared action are reflected in the dialog box.
For information on how to share actions, see Share actions.
You can reuse shared actions across projects in any of the following ways:
- Export and import the shared action from the Advanced Actions dialog box or from the Library. For details, see Export and import shared actions.
- Copy and paste the shared action into the target project(s). For details, see Copy shared actions.
- Drag-and-drop the shared action by opening the source project Library from the target project's Library (Open Library option). For details, see Drag-and-drop shared actions from an external Library.
Export the required shared action as a .cpaa file and save it on your computer using one of the following methods:
- In the Advanced Actions dialog box, click the shared action from the Create From list, and click Export ().
- Click the shared action in Adobe Captivate Library, and click Export ().
Assign the shared action to the required objects:
- Click the object on stage and click Execute Shared Actions from the On Success list in the Property Inspector (Action accordion).
- Click the action from the Shared Action list, and click to edit the parameters.
- From the drop-down lists in the Parameter Value column, click the appropriate options for the corresponding Parameter Description.
Note: If the parent Advanced Action involves creating a variable, the variable is automatically created in the target project too.
Now, you can apply parameters to variables and literals and add different values at runtime. You can also choose which objects and variables can be parameters.
- From Advanced Actions panel, choose any variable (such as Assign Action) and set value as variable and literals
- Click Save as Shared Action button.
- In the pop-up window, you can see both the variable and literals being listed as Parameters.
- You can save the shared action.
- When you execute this shared action on any object, you can set new parameter values for the object.
For information on how to create Shared Actions, see Share Actions
To copy, select the slide containing the object executing the shared action and also the other objects that are used as parameters in the shared action. For example, consider that the shared action 'CommonAction' shows the text caption 'Welcome' and is assigned to a button 'Enter'. Ensure that you copy the text caption along with the button and then paste them into the target project.
Click the Open Library icon in the Library of the source project. Browse and select the project from which you want to import the shared action. The external Library opens in a separate window. Drag-and-drop the shared action into the Library of the source project.
- Create an advanced action and save as Shared action item.
- Click Libraries icon, available next to Properties icon.
By default, Libraries icon does not appear. Click Windows > Libraries to view.
- Create an object in the slide.
- Click the shared action from the Library and drag on to the object as shown in the screenshot below.
The Shared Action is applied on the object.