0 Replies Latest reply on Sep 19, 2006 10:16 AM by Newsgroup_User

    Please i need help with this condition

    Level 7
      ok this my situation and try to help me simpler than this
      i have 3 input test fields named
      name_txt , emailTxt , phonetxt.

      and i have a text file named "question.txt" at the same folder.
      i have three dynamic textfields that load &ques1 , &ques2 and &ques3
      and i want to do the following:
      i want to compare between the answers the user input and the answers at the
      txt file &answer1,&answer2 and &answer3.

      For example:
      _root.submit_btn.onRelease = function(){
      if ( _root.nametxt.text = = My variable ????){
      gotoAndPlay(2);
      } else{
      gotoAndPlay(3);
      }
      }


      AND THE CODE I AM USING IS :

      //on frame 1

      stop();
      _root.loadVariables("ques.txt");


      /*and my input txts named as following
      name_txt
      email_txt
      phone_txt

      and the text file ques.txt read as following:

      &firstQ=What is your name?
      &secondQ=What is your email?
      &thirdQ=What is your mobile number?
      &answer1=Essam
      &answer2= my email
      &answer3=0124613121

      and i want to make a condition to compare between text input in the
      name_txt,email_txt and phone_txt and &answer1, &answer2 , &answer3 and
      that if ok gotoAndStop(where the next ques is) ;


      Please help me that way and thank you for your efforts in advance