Copy link to clipboard
Copied
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
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.
Copy link to clipboard
Copied
Have you checked out this tutorial? Creating a Looping Animation > Animating Shapes with Shape Tweens in Adobe Flash Professional CC (20...
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi Colin,
Thanks for the reply.
Do you know the actual AS code?
Thanks,
Christian
Copy link to clipboard
Copied
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?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now