3 Replies Latest reply on May 30, 2007 4:41 PM by kglad

    Simple Scripting

    MuchoSpanish
      Hi, everyone

      I have a very basic quiz that I'm experimenting with. I'd like, at this point, just to count the questions and see if I can display the number at the end.

      I initialized the variables - right, wrong - on the first frame. I don't want the question counted if the user clicks a wrong answer before clicking on the right answer. On the button for the right answer, I have this little script:

      on (release) {
      if (wrong=0) {
      right = "right+1";
      gotoAndPlay(699);
      } else {
      wrong = "0";
      gotoAndPlay(699);
      }
      }

      On the last frame of the quiz, I have a dynamic text box set to display the variable - right.

      Thanks.

      Dan