Toggles are one of the most versatile tools you can use when building your Captivate project. They’re easy to build and add a lot of functionality to your project. In this video, I demonstrate a simple toggle, show you how to build one and explain how the toggle I built works.
I’m working on a eLearning and ran into a few tiny hiccups that I think can be fixed easily. The problem is that I can’t seem to find a solution.
Here are the problems i’m having.
I used a tutorial (and I don’t remember which one) to build a pause/play toggle button that pauses the timeline and plays again after pushing the button again.
The problem with this button is, that for the first time to pause the timeline, I have to push the button twice. After that, it starts working perfectly.
Custom drag and drop slide:
Here I have a few small issues.
– When pressing Submit, my submit button disappears (this is not a big issue. Think I’ve already asked this ones and it can not be fixed)
– What also disappears after a few seconds, is my response text. This should stay in the screen till the end and right now it doesn’t
– This slide has a voiceover MP3 running in the back. When I tapp the pause/play toggle button to pause the sound and push submit to answer my question. The voiceover starts playing again after pushing the submit button.
Maybe it can not be fixed and I need to build a complete new structure, i’m happy to hear any tips!
If anybody needs more info, screenshots or script examples of the toggle button, please let me know.
Use Case – description
Standard Advanced Action ShowContent
Standard Advanced Action CloseContent
In this scenario a Toggle button is used both for opening and closing the popup.
- You need an extra custom state for the popup button which indicates that it changes to a close button after having opened a popup:
- You’ll need a variable to track the status: I will use v_visib, a Boolean, with value = 0 when the popup is not visible,
and value = 1 when the popup is visible; since I used a shared action from an external library, that variable is created automatically.
- You’ll need a conditional advanced action to be triggered by the Success action of the button; this is the advanced action version created based on the shared action:
An interactive video will often be spread over multiple slides, to offer navigation buttons to different parts of the video. It is not a problem to have the scenarios available on all slides: time both the button and the popup groups for the rest of the project, always on top.
I mentioned the possibility to group a close button with text, but groups with more objects are possible as well: image, shape, animations. Group all together, hide the group On Enter for the slide, and you only have to replace the single object in the scenarios above by the group.
Turn the actions into shared actions, and keep them in a separate project. You can open the Library of that project as an external Library in future projects. Especially the toggle action, it will save time because you don’t have to create the user variable.
Future use case, example of Pausing the timeline, will be about audio. It is more complicated because there are several ways to use audio in Captivate, perhaps I will need more than one post.