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

this looping code isn't working inside a symbol

Community Beginner ,
May 31, 2019 May 31, 2019

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?

267
Translate
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.

Translate
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.

Translate
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
LATEST

mystery solved, I had the publish setting "loop timeline" unchecked. I thought this would automatically loop the main timeline so I unchecked it.

Translate
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