1 Reply Latest reply on Apr 14, 2015 5:50 AM by Egil Arntzen

    Setting amount of loop

    Egil Arntzen Level 1

      Hi, I want to set my animation to loop 3 times and then stop at a certain frame. Can someone please help me out?

        • 1. Re: Setting amount of loop
          Egil Arntzen Level 1

          Ok, I got a code that works.
          Put this code at the frame you want your animation to stop after looping 3 times.

           

          if(!loopCount){var loopCount:Number = 0;}

          loopCount++;

          if(loopCount >= 3){stop();}

           

           

          But would still like to know how to set it to stop at a chosen frame after looping 3 times.