Skip to main content
carlb29511258
Participant
December 16, 2015
Question

problem with pause functionality and going back to slide - captivate 6

  • December 16, 2015
  • 1 reply
  • 469 views

In Captivate 6 I have created a pause button with action script

hide pause_button

Show play_button and play-image

Assign cpCmndPause with 1

And a play button with action script

Hide play_button and play_image

Show pause_button and pause_image

Assign cpCmndResume with 1

The pIay button only appears when the project is in a state of pause.

I have created a variable ‘v_setframe’ that activates on entering the Captivate slide, this is set to the first animated frame in on the slide.

I have also created a restart button using a conditional action scripts


If

cpCmndPause is equal to 1

Then

Hide play_button and play_image

Show pause_button and pause_image

Assign cpCmndPause with 0

Assign cpCmndPause with 0

cpCmndGotoFrameAndResume with v_setframe

ELSE

cpCmndGotoFrameAndResume with v_setframe

If

cpCmndResume is equal to 0

then

Hide play_button and play_image

Show pause_button and pause_image

Assign cpCmndResume with 1

cpCmndGotoFrameAndResume with v_setframe

ELSE

cpCmndGotoFrameAndResume with v_setframe

The problem is when I pause and move on to a new slide then go back then the play button is visible

    This topic has been closed for replies.

    1 reply

    Lilybiri
    Legend
    December 16, 2015

    You have to use the On Enter event to trigger an action that is resetting

    everything.

    carlb29511258
    Participant
    December 17, 2015

    I tried creating the script to on enter with the assigning of the variable

    IF

    cpCmndPause is equal to 1

    then

    hide play_button and play_image

    show pause_button and pause_image

    assign cpCmndPause with 0

    v_setframe with cpInfoCurrentFrame

    Else

    v_setframe with cpInfoCurrentFrame

    If

    cpCmndResume is equal to 0

    then

    hide play_button and play_image

    show pause_button and pause_image

    assign cpCmndResume with 1

    v_setframe with cpInfoCurrentFrame

    Else

    v_setframe with cpInfoCurrentFrame

    It worked going backwards but now when I pause and go to the next slide the play button is showing.

    I should also mention that each slide has it’s own pause button and restart button as when I tried having each show for the rest of the project this caused errors in the grouping

    Lilybiri
    Legend
    December 17, 2015

    You make this very difficult, I would prefer to see a screenshot of the 'real' advanced action instead of a transcription that is not totally correct. Did you ever read this old article I wrote about Play/Pause:

    Custom Play/Pause button in Captivate - Captivate blog

    It was written for 5.5, you'll have to replace the old system variables (starting with rd) by the cp variables. You'll see that I'm always using both variables cpCmndPause AND cpCmndResume

    The issue will be with the micronavigation: when you use this On Enter action, v_setframe will have the first (or second, not always precise) number of the slide you enter. Why do you need the micronavigation, what is the logic behind that? The word 'micronavigation' was invented by me quite a few years ago in another article:

    Micro-Navigation in Adobe Captivate - Captivate blog

    During consulting jobs I see often that this micro-navigation is used wrongly, must have explained badly.

    For a Play/Pause button I would never use micro-navigation, why do you use it?