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

this looping code isn't working inside a symbol

Community Beginner ,
May 31, 2019 May 31, 2019

Copy link to clipboard

Copied

if (!this.looped) this.looped = 1; 

if (this.looped++ == 3) this.stop();

I'm not sure if it never worked inside a movieClip or if something changed recently but it works on the main timeline. How do i get the movieclip to loop 3 times?

Views

170

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

correct answers 1 Correct answer

LEGEND , May 31, 2019 May 31, 2019

I just tested that code inside a movieclip and it worked perfectly.

It will NOT working inside a graphic. Because graphics aren't movieclips. Movieclips are movieclips.

Votes

Translate

Translate
LEGEND ,
May 31, 2019 May 31, 2019

Copy link to clipboard

Copied

I just tested that code inside a movieclip and it worked perfectly.

It will NOT working inside a graphic. Because graphics aren't movieclips. Movieclips are movieclips.

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 ,
May 31, 2019 May 31, 2019

Copy link to clipboard

Copied

LATEST

mystery solved, I had the publish setting "loop timeline" unchecked. I thought this would automatically loop the main timeline so I unchecked 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