5 Replies Latest reply on Apr 24, 2008 11:09 PM by kglad

    movie only works in Flash Player 7?

    JMH5
      Hello,

      I have a movie that works just fine if its Publish settings are Flash Player 7, but it won't work if it's set to Flash Player 8 or 9.

      This movie is a text entry quiz in which the enduser enters letters in input text fields. The variable names for the input text fields are "textEntry1" though "textEntry5".

      There are two frames. In the first frame, the answers are set like this:

      answer1 = "C";
      answer2 = "A";
      answer3 = "E";
      answer4 = "B";
      answer5 = "D";

      answer6 = "c";
      answer7 = "a";
      answer8 = "e";
      answer9 = "b";
      answer10 = "d";

      stop ();

      The enduser enters choices in five text fields and then selects a "Submit" button.

      On frame two, I have another text field called finalScore that has this scripting:

      onClipEvent (enterFrame) {
      rightanswer = 0;

      for (var i:Number = 1; i<=5; i++) {

      if ((_root["textEntry" + i] == _root["answer" + i]) or
      (_root["textEntry" + i] == _root["answer" + (i+5)])) {
      (rightanswer = rightanswer + 1);
      _root["correct" + i].gotoAndPlay (2);

      }else{
      _root["correct" + i].gotoAndPlay (3);
      }
      }
      finalScore = "You matched " + rightanswer + " of 5 correctly.";
      }

      Like I said, this works just fine if the Publish settings are Flash Player 7. Can anyone point out to me why it won't work if the Publish settings are Flash Player 8 or 9?
      Thanks!