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

How to always load animation from the starting frame when revisted

Explorer ,
May 03, 2018 May 03, 2018

Hello,

I have an HTML5 animation in a slide (Revolution Slider) and it only plays once, so when the slide comes back around, it doesn't animate again, it sits on the final frame... Is there a way to reset the animation each time it plays, so it's positioned to start at the beginning next time it's viewed (possibly AS but couldn't find anything)...

This question isn't just for slider enviroments, but also on a page, if someone scrolls away from the animation, can it then be set to play from the start next time it's viewed?

Thanks,

Christian

371
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

correct answers 1 Correct answer

LEGEND , May 04, 2018 May 04, 2018

Unfortunately, this is a difference between ActionScript and CreateJS. MovieClips are kept in memory, and will remember where they had got to. You will need to use code to reset the movieclip, and to set itself playing again when it reappears.

Translate
Adobe Employee ,
May 04, 2018 May 04, 2018
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
LEGEND ,
May 04, 2018 May 04, 2018

Unfortunately, this is a difference between ActionScript and CreateJS. MovieClips are kept in memory, and will remember where they had got to. You will need to use code to reset the movieclip, and to set itself playing again when it reappears.

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
Explorer ,
May 11, 2018 May 11, 2018

Hi Colin,

Thanks for the reply.

Do you know the actual AS code?

Thanks,

Christian

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
LEGEND ,
May 11, 2018 May 11, 2018
LATEST

It would be JavaScript, not ActionScript. What is the code like that takes you to the slideshow the first time, and the code that makes it show the slideshow again?

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