Highlighted

this looping code isn't working inside a symbol

Community Beginner ,
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?

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

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.

Views

70

Likes

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

this looping code isn't working inside a symbol

Community Beginner ,
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?

Adobe Community Professional
Correct answer by ClayUUID | Adobe Community Professional

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.

Views

71

Likes

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
May 31, 2019 0
Adobe Community Professional ,
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.

Likes

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
Reply
Loading...
May 31, 2019 2
Community Beginner ,
May 31, 2019

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
May 31, 2019 0