4 Replies Latest reply on Jul 20, 2010 2:48 PM by kglad

    Loop then stop Flash CS3 vs Flash CS5

    judy20012345

      I recently upgraded from Flash CS3 to CS5. I'm creating a banner in Flash CS5 using ActionScript 2.0. I want it to loop 3 times then stop. I'm using the same code as I did in CS3. When I view it using Flash Player, its fine but my client is saying it loops continuously when they view it. Has the code changed since CS3? Here is the code I'm currently using:

       

      ON FIRST FRAME I ENTERED:

      var count;

       

      if(!count){

           count = 0;

      }

       

      THEN ON THE LAST FRAME I ENTERED:

       

      count += 1;

       

      if(count == 3){

      stop();

      }

       

      I'm Action Script challenged, so please be specific. Thank you in advance for your help.