4 Replies Latest reply on Nov 21, 2011 11:17 AM by kglad

    Looping AS2 Question

    LuisRM Level 1

      I have a flash document that I want to loop twice after playing most of it, then play the rest of the file on the third playthrough and stop. Here is what I have so far.

       

      Frame 1

      var loop:Number = 0;

       

      Frame 41

      if(++loop > 2){

          gotoAndPlay(2);

      }

      else{

          gotoAndPlay(42);

      }

       

      Frame 51

      stop();

       

      The file just plays once thorough and stops on Frame 51. Any suggestions or help is appreciated. Thanks!