Skip to main content
AJMerritt4
Participating Frequently
June 16, 2015
Answered

How can I prevent Captivate from advancing to the next slide after the audio has finished playing and I click on a click box to show/hide text box?

  • June 16, 2015
  • 1 reply
  • 3342 views

I currently have a slide that plays audio.  While the use is listening to the narration I can click on three different click boxes with advanced actions set to open and close text boxes I want the user to read.  When the narration finishes playing and I go to click any of the click boxes to read a text box it advances to the next slide.  I understand I may have to replace the click box with smart buttons but I do not know how to stop the advancement to the next slide.  I already have a next button that is set to pause until the user clicks.  Any help would be greatly appreciated.  I am on a tight deadline.

This topic has been closed for replies.
Correct answer Lilybiri

Based off how I need my page to work I was able to find information from great experts like Lilybiri and others.  I have used their suggestions to allow me to get to this point.  The Advanced Actions above allows me to do what I need to a certain point.  Feel free to recreate what I have done using the same Advanced Actions and replacing the cpCmndGoToFrameandResume with cpCmndGoToFrame and you will see that when my icon is pressed it will stop the audio because the assignment does not let you the continue of the an audio file without have the cpCmndGoToFrameandResume in place.  Anyway I appreciate you asking because we are all trying to learn so let's wait and see what Lilybiri recommends with regards to my Advanced Actions.


I created quickly an example file, just having a slide with three shape buttons that act as toggles, and a next button. The first three buttons pause at exactly the same time, and the Next button later.

Since it is slide audio, clicking the buttons will not pause the audio at all (common misunderstanding). I created a shared action, with the object to be shown and the variable (mine are labeled v_one instead of v_visib) as parameters:

StarOne is what you want to show/hide. You can click infinite times on each button to show/hide that item. It will not bother the audio, once it started playing it will continue. When audio is over, you can still continue to click. Only a click on the Next button will advance to the next slide. This is my Timeline

No need to rewind the playhead in this case at all.

1 reply

Lilybiri
Legend
June 16, 2015

A simple action will release the playhead. I suspect that is your problem. Have a look at this blog post:

Why choose Standard over Simple action? - Captivate blog

Replacing the simple action by a standard or a shared action (if you use CP7 or  8) you can solve your problem.

This has nothing to do with replacing click boxes by any other interactive object, that behavior is common to every object that can trigger an action. I don't know where you heard that wrong information?

AJMerritt4
Participating Frequently
June 16, 2015

Hi Lilybiri,

I am using the following Advanced Action on one of the click box.  This allows me to hide and show the text box as many times as I want while the timeline advances and plays narration for 16 seconds.  After the slides reaches the end of the time line and the audio stops I want to click the click box to hide or show the text box but it advances to the next slide.  I do not want it to advance to the next slide until I click my next button.  I am using Assign cpCmndGotoFrameAndResume because I want the narration to continue while I am clicking on the click box.  If I use cpComndGotoFrame it will stop the audio I don't want that to happen either.  What should I be adding to the Advanced Actions?

IF

v_visibbox1 is equal to 1

Actions

Hide box1

Expression v_visibbox1=1-v_visibbox1

Assign cpCmndGotoFrameAndResume with cpInfoCurrentFrame

Else

Show box1

Expression v_visibbox1=1-v_visibbox1

Assign cpCmndGotoFrameAndResume with cpInfoCurrentFrame


Thank you,

Alan

Lilybiri
Legend
June 16, 2015

Can you show a screenshot of the timeline? The playhead will not reach the end of the timeline, that is a common misunderstanding, it will stop at the pausing point of the click box. Even if the audio clip is longer, that doesn't matter, it will continue playing once it started. Only a real pausing button can pause the audio.

Which version? I recognize that action (lot of examples on my blog), but now I would use Toggle instead of the Expression, unless you are still on CP6. And if you are on 7 or 8, use a shared action.