Several years ago I have already created a blog about this topic.
Meanwhile Captivate has added a lot more features: multistate objects, changes in system variables, easier commands etc. Since that question often appears on social media and the old post is also still visited daily, time to offer an easier way. It is also a use case illustraing use of a system variable, following to my recent posts about system variables. Here you'll discover how you can use an Interactive Video to as training asset for a workflow. It is up to you: video or step-by-ste textual instructions with screenshots.
Why do I prefer a Shape Button?
Captivate has 4 types of buttons, which have 4 InBuilt states: ‘Normal’, ‘Rollover’, ‘Down’, and ‘Visited’. They can all have extra custom states, which allows to create nice toggle buttons showing the situation at that moment. Examples: TOC open/closed, Audio playing/muted, CC visible/invisible etc (have a look at: 1 action = 5 toggle buttons). The three first states are included in the object style of the button or the shape, the Visited state is not included. Custom states are neither included in the button style.
Text buttons, Transparent buttons (which are not necessarily transparent), Image buttons can NOT be used on master slides, can NOT be timed for the rest of the project. A shape button can be used on master slides, can be timed for the rest of the project. For a toggle button Play/oause this is a big advantage: you need only one shape button for your project. If you prefer one of the older button types, you would need a button on each slide.
Workflow - Interactive Video
The movie is based on a Video Demo. The CPVC-file was captured at 1280x720. It is embedded as interactive video in a cptx-rpoject with a resolution of 1024x627. The ratio widht/height is not the same because the synchronized interactive video has a top control bar. I extended the functionality of Interactive video, you'll find some tips in my next post.
I will not embed the video in this post, it would be too small. I offer you two links: the first is to the unscaled published movie, where you'll have the best quality which is important to watch the sometimes very tiny features of the Captivate UI. If you want to see it oscaled to your browser resolution, you can use the second link, which is to a rescalable version. It may look more blurry on a very big screen, but you need to use this version if you want to watch on mobile devices:
Fixed resolution: Custom Play/Pause
Rescalable: Custom Play/Pause
Step 1: Creation of the Shape button
- Create a shape and check off the option ‘Use as Button’.
- Open the State panel, using the button ‘State View’ in the Properties panel.
- In the Normal state, fill the shape with an image and/or text you want to show when the course is playing, to pause the course.
- Delete the InBuilt states ‘Rollover’ and ‘Down’, using the right-click menu on those states (you cannot use a simple Delete key).
- Add a Custom State, and name that state (I use 'Play' as label)
- In this custom state fill the shape with an image and/or text you want to show when the course is paused, to resume Playing.
Here is a screenshot of the states I created in the video:
Step 2: Location Shape button
Once the button is ready, you have to decide where to put it, and take out the Pausing point. Reason: you want this button to be available all the time, but not a pausing point like you need for a Submit or a Next button. There are two possibilities for its location;
1. On Master slides
If you want to use the Play/pause button on all slides, and you are creating a non-responsive project or a responsive project with breakpoint views, the easiest way is to copy/paste the button to the Main master slide. The daughter master slides can inherit the button. Careful: in some themes the Title master slides is not using the main master slide objects, you’ll need the button also on that master slide in that case.
There is a problem with this possible workflow due to the fact that shape buttons on master slides do not have an ID, and that means they cannot be used with the Chang State command. You can not show a custom state for shape buttons on master slides. As a workaround (not explained here in detail), you can combine the functionality of that button, with a two-state image which is on the first slide, timed for the rest of the project. That image will have an ID and you change the state of that image. The shape button on the master slide needs to be transparent (you can keep a stroke if you want) so that the images will be visible.
For a fluid boxes responsive project, you cannot use the main master slide (cannot have fluid boxes). You will need to insert the button on each used master slides where you want that functionality.
To turn off the pausing point: open the Actions tab of the button, and uncheck the option ‘Pause project until user clicks’.
2. Timed for the rest of the project
The alternative for the master slides, is to have the Play/pause button on the first slide, and time it for the rest of the project, always on top. That has to be done in the Timing Properties of the button. At that same place you can also turn off Pausing:
For a Fluid Boxes project: object timed for the rest of the project is normally not possible. I explored and found it iw possible but with the requirement that you use the same master slide for all content slides.
Step 3: Create Advanced Action
The success event of the button has to trigger a rather simple advanced action. Check the ‘Conditional Tab’ and create this action:
Explanation: I am checking the value of the Boolean variable cpCmndPause (see article). If that value = 0, the course is playing.
In that situation I will use the command ‘Pause’ (‘Pause’ is exactly the same as ‘Assign cpCmndPause with 1) and change the state of the button SB_PausePlay to the Play state.
If the course is paused however, that variable would not have the value = 0 (but = 1) and the ELSE commands are done: the state of the button is reset to Normal, and the playhead is released by the command ‘Continue’ (which is the same as Assign cpCmndResume with 1, which is also setting cpCmndPause back to 0).
Warning: not everything is ‘paused’!
As I explained more in detail in my sequence of blogs about the timeline, even an absolute pause (‘Pause’) will not pause everything. Here in short the most important:
- Animations of all type (animated GIF, SWF, OAM….).
- Event video if it is playing
- Audio which was started with the command ‘Play Audio’
For more information:
You would have the same situation with the Pause button on default Captivate playbars. It is not due to the fact that this is a custom button.