4 Replies Latest reply on Sep 23, 2016 12:43 PM by nsaneo

    Loop twice and stop at a label?

    nsaneo Level 1

      Hi Community,


      My question:

      How can I loop my entire animation twice* and after that stop at a label/frame?

      It's the same question in this topic , but this time for Animate CC.

       

      Example:
      A banner has 100 frames. It has to loop twice from 0 to 100, then play from 0 and stop at frame 80.


      Thank you,

       

      Michael

       

      *This code loops the entire animation twice:

      if(!this.alreadyExecuted){

      this.alreadyExecuted=true;

      this.loopNum=1;

      } else {

      this.loopNum++;

      if(this.loopNum==2){

      this.stop();

      }

      }