Skip to main content
Known Participant
July 1, 2010
Question

Action to go back to a specific location in the timeline of a slide

  • July 1, 2010
  • 1 reply
  • 708 views

I'm using Captivate 4.0.

I have a inserted a movie into a slide. The movie starts after the user press a play button. When the movie is completed, I display another button to replay the movie. The action associated with the replay button is rdcmndGotoFrame = xxx (xx is the frame number when the movie starts when the user press the start button).

It seems that it working, but the movie doest nor replay completly and the replay button is not even displayed again

My questions are:

- is rdcmndGotoFrame appropriate for what I want to do?

- What would be an other option to reply this movie ? I cannot have the replay button in the movie it-self as it is used in other projects.

Any help would be really appreciated.

This topic has been closed for replies.

1 reply

July 1, 2010

Hi there,

Instead of using rdcmndGotoFrame = xxx. I would suggest that you try using rdcmndGotoFrameAndResume = rdinfoCurrentFrame - (minus symbol)

(the number of frames you want to move back to).

If you cannot include the 'rewind' button in your published files and you are serving your content via a web browser then you might want to consider controlling the published files using JavaScript.

You can learn more about controlling Captivate SWF files using JS from the web address I have included below.

http://pipwerks.com/2008/09/08/control-a-captivate-swf-using-javascript-the-basics/

Best regards,

Mark

lestabAuthor
Known Participant
July 1, 2010

Thanks.

It is not working. Actually, after pressing the button, it does not go back to the specified frame.

The frame number I want to go back is 640

The frame number when the Reply button is displayed is 1040, so I understand that then the line should be:

cmndGotoFrameAndResume = rdinfoCurrentFrame - 400, correct ? that does not do it. Any addtional idea ?

lestabAuthor
Known Participant
July 8, 2010

Ok.

After many hours of head hack, I have managed to do what I wanted. The trick was to add before

rdcmndGotoFrameAndResume the action rdcmndNextSlide !

It works perfectly as long as you have a next slide, otherwise simply add one very short.

So the Action code looks as below:

- rdcmndNextSlide := 1

- rdcmndGotoFrameAndResume := setPlay (setPlay is a numerical variable I use to store the location where to go back so it always works even if slides are added)

- Continue

I do not not realy understand why I have to add rdcmndNextSlide (it does not go to the next slide anyway) but it is working for me.