Skip to main content
Inspiring
May 3, 2018
Answered

How to always load animation from the starting frame when revisted

  • May 3, 2018
  • 2 replies
  • 416 views

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

    This topic has been closed for replies.
    Correct answer Colin Holgate

    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.

    2 replies

    Colin Holgate
    Colin HolgateCorrect answer
    Inspiring
    May 4, 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.

    Inspiring
    May 11, 2018

    Hi Colin,

    Thanks for the reply.

    Do you know the actual AS code?

    Thanks,

    Christian

    Colin Holgate
    Inspiring
    May 11, 2018

    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?

    Preran
    Legend
    May 4, 2018