Highlighted

Loop timeline twice, then stop on a certain frame before end

New Here ,
Jul 30, 2020

Copy link to clipboard

Copied

Hi, I'm trying to loop the entire timeline twice, but then stop before the end frame on the second loop, is this possible? 

I'm current using this snippet:


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

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

 

Thanks for your help

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

assuming this is on the frame where you want the timeline to stop:

 

if (!this.looped) {

this.looped = 1;

} else {

this.looped++;

}

if(this.looped == 2){

this.stop();

}

TOPICS
ActionScript, Ad development, Code, How to, Timeline

Views

56

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

Loop timeline twice, then stop on a certain frame before end

New Here ,
Jul 30, 2020

Copy link to clipboard

Copied

Hi, I'm trying to loop the entire timeline twice, but then stop before the end frame on the second loop, is this possible? 

I'm current using this snippet:


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

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

 

Thanks for your help

Adobe Community Professional
Correct answer by kglad | Adobe Community Professional

assuming this is on the frame where you want the timeline to stop:

 

if (!this.looped) {

this.looped = 1;

} else {

this.looped++;

}

if(this.looped == 2){

this.stop();

}

TOPICS
ActionScript, Ad development, Code, How to, Timeline

Views

57

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
Jul 30, 2020 0
Adobe Community Professional ,
Aug 01, 2020

Copy link to clipboard

Copied

assuming this is on the frame where you want the timeline to stop:

 

if (!this.looped) {

this.looped = 1;

} else {

this.looped++;

}

if(this.looped == 2){

this.stop();

}

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...
Aug 01, 2020 0
Adobe Community Professional ,
Aug 01, 2020

Copy link to clipboard

Copied

So put that code where you want it to stop. What's the problem?

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...
Aug 01, 2020 0
New Here ,
Aug 02, 2020

Copy link to clipboard

Copied

Thanks both – it's always the simplest answer.

 

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...
Aug 02, 2020 0
kglad LATEST
Adobe Community Professional ,
Aug 03, 2020

Copy link to clipboard

Copied

you're welcome.

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...
Aug 03, 2020 0