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

Problems on looping entire timeline

Community Beginner ,
Apr 22, 2022 Apr 22, 2022

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.

16270510-2CA7-443D-BCF5-4CBF754D8265.jpeg

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!

TOPICS
ActionScript , Code , Timeline

Views

174

Translate

Translate

Report

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 ,
Apr 22, 2022 Apr 22, 2022

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

Votes

Translate

Translate

Report

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 ,
Apr 22, 2022 Apr 22, 2022

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!

Votes

Translate

Translate

Report

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 ,
Apr 22, 2022 Apr 22, 2022

Copy link to clipboard

Copied

No problem!

 

Can you confirm if the symbols in layers S1, S2, and S3 are all Graphics?

Votes

Translate

Translate

Report

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 ,
Apr 23, 2022 Apr 23, 2022

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.

Votes

Translate

Translate

Report

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 ,
Apr 23, 2022 Apr 23, 2022

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.

Votes

Translate

Translate

Report

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 ,
Apr 23, 2022 Apr 23, 2022

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!

Votes

Translate

Translate

Report

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 ,
Apr 23, 2022 Apr 23, 2022

Copy link to clipboard

Copied

LATEST

you're welcome.

Votes

Translate

Translate

Report

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