Copy link to clipboard
Copied
Hi everyone!
I am a newbie on Animate and I encounter a problems on looping the entire timeline when create my html 5 banner with online tutorials.
I have total of 3 scene in the banner.
I imported all the element from Illustrator, and named the layer with “S1” “S2” and “S3” .
I animate the elements inside each layer.
When I finished the animation, I added a new layer call “coding” and add the action:
if (!this.looped) this.looped = 1;
if (this.looped++ == 3) this.stop();
But it just keep looping Scene 3 after playing the banner once, instead of looping the whole timeline.
And it didn’t stop when it play 3 times.
I try to use gotoAndPlay(X) instead, but I cannot stop looping suscessfully.
It would be great if anyone can give me a helping hand. Thank you so much!
Copy link to clipboard
Copied
Hi.
There are no scenes in HTML5 documents. Please check if you really using the HTML5 Canvas document.
Please let us know.
Regards,
JC
Copy link to clipboard
Copied
Hi JC! Thank you for your reply!
Yes I am using html5 canvas.
what I mean in "scene" is like I have 3 motion graphics to show totally. So I put it in different layers and set it play for 2.5 seconds in the timeline.
But when I try to loop the whole timeline, it always just playing the last motion graphics. It cannot play from the beginning.
Sorry to make you confuse!
Copy link to clipboard
Copied
No problem!
Can you confirm if the symbols in layers S1, S2, and S3 are all Graphics?
Copy link to clipboard
Copied
@JoãoCésar wrote:No problem!
Can you confirm if the symbols in layers S1, S2, and S3 are all Graphics?
No, most of the sumbols I set it as a "Movie Clip".
I followed the online tutorial video to set it.
Copy link to clipboard
Copied
your code is only going to stop the timeline that contains that code. it's not going to stop the movieclips from looping.
either use graphic symbols (in the properties panel change the movieclips to graphics) as @JoãoCésar is suggesting or you need code for each movieclip.
Copy link to clipboard
Copied
Thank you for your suggestion!
I try to change the elements to graphics and checked the publish setting again, and it works now! 🙂
Thank you for the kind helping hand!
Copy link to clipboard
Copied
you're welcome.