Skip to main content
chadd3178332
Known Participant
May 31, 2019
Answered

this looping code isn't working inside a symbol

  • May 31, 2019
  • 1 reply
  • 307 views

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?

    This topic has been closed for replies.
    Correct answer ClayUUID

    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.

    1 reply

    ClayUUIDCorrect answer
    Legend
    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.

    chadd3178332
    Known Participant
    May 31, 2019

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