2 Replies Latest reply on Sep 7, 2015 2:17 PM by Barrowman

    Loop a HTML5 Canvas timeline a few of times then stop.

    Barrowman

      Hi

       

      It's pretty easy to loop a normal flash file 3x then stop. But I'm really struggling to do it with a H5 canvas file in Flash.

       

      //--- Loop counter

      if (!loopCount)

      {

        var loopCount:Number = 0;

      }

      loopCount++;

      if (loopCount >= 2)

      {

        this.stop();

      }

      else

      {

      gotoAndPlay(1)

      }

       

      Thanks as always in advance.

       

      Kind regards