Skip to main content
Known Participant
June 14, 2017
Answered

Loop part of an animation

  • June 14, 2017
  • 1 reply
  • 2874 views

I have a presentation that contains 5 images. I want the presentation to start at image one and run to image five. I then want it to loop back to image TWO and then run to image five and then loop forever. So basically, image one only appears once, at the start. How do I do that? Thanks.

.

This topic has been closed for replies.
Correct answer UDESCO

SendThisFile - File Download

You should be able to retrieve the file from this link.


Your file plays absolutely fine on my machine without changing anything.

How are you previewing the animation?

use Ctrl + Enter to preview the animation on browser.

1 reply

UDESCO
Adobe Employee
Adobe Employee
June 14, 2017

You simply have to go to the last frame, open Actions panel (Windows menu > Actions) and write a line of code over there.

this.gotoAndPlay(2);          (for Actionscript 3.0 files), or

this.gotoAndPlay(1);          (for HTML5 Canvas files)

Dazzer_21Author
Known Participant
June 14, 2017

Sorry - being thick; how do I set it up to return the playhead to the specific frame? Say I want it to go back to frame 25 and then loop continuously from there? Thank you for your answer.

UDESCO
Adobe Employee
Adobe Employee
June 14, 2017

this.gotoAndPlay(FrameNumber);

  or

this.gotoAndPlay('Label');