1 Reply Latest reply on Apr 5, 2016 4:58 AM by marjantrajkovski

    How can i loop my animation twice?

    clash2002

      hey im trying to loop a banner twice.

       

      therefor i created 2 variables on the first frame

       

      var count = 0;

      var how_many_loops = 2;

       

       

      And added this if clause on the last frame

      count++;

      if (count == how_many_loops) this.stop();

       

       

      But it doesnt work. i tried to trace the count var via alert on the last frame, but it seems that count isnt a global var.

       

      Any suggestions?