Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Stopping an animation at a certain time via code

Community Beginner ,
Mar 28, 2018 Mar 28, 2018

I am trying to find out if there is a way to stop an animation (oam, swf, mp4 or wtv) at a certain time on its own timeline not of the slide itself.

For instance I have a progress bar animation with 3 levels (so the animation is a bar going from 0 to 100), so based on a variable I would like the progress bar animation to stop at a certain time while the slide is still playing.

Is this possible?

311
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 28, 2018 Mar 28, 2018

MP4 is not an animation but a video format. If you insert the video as event video in Captivate you have automatically a control panel with a Pause button. It plays independtly of Captivate.

As I explained in my Timeline articles and movies, animation are, unless using JS, out of control with Captivate tools. If I created an OAM and want the possibility to pause, I would do it in the application in which I created the OAM (in my case either Edge Animate or Animate CC). It has not much sense to talk about SWF anymore, but that would have been the same approach. It is possible to exchange the value of a variable between an OAM and CP.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 28, 2018 Mar 28, 2018

OK is there a simple tutorial out there on how to communicate between Captivate and an OAM file? A simple send/receive variable data between OAM and Captivate.

I want to see how easy it is to do...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 28, 2018 Mar 28, 2018

There used to be a great video course by Jim Leichtliter which had some lessons about that subject, but I'm not aware of a new tutorial at all. Maybe one of the JS experts on this forum can point you to a tutorial.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 28, 2018 Mar 28, 2018
LATEST

If you're using an MP4, you could host it on Vimeo - then use their API for control. 

https://elearning.adobe.com/2017/12/end-of-video-events-with-vimeo/

I haven't yet used OAM files. You could try creating your own animation using WAAPI and then control it through that. 

https://css-tricks.com/css-animations-vs-web-animations-api/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources