1 Reply Latest reply on Jun 25, 2013 8:59 AM by kglad

    How to create a loop in this case?


      Hi! I'm trying to use the if statement, but the code is only read once.
      How do I get this code to be read several times?

      For example, when the car passes the detector the number goes to 10.
      So the code does not detect the if statement because the code is only read once.




      var score: Number = 9;

      if (score == 10)
      gotoAndPlay (3);