3 Replies Latest reply on Jan 17, 2007 2:47 PM by egibson.mail@gmail.com

    Help a newb out

    egibson.mail@gmail.com
      Just learning actionscript on the fly as I create a basic interactive learning module.

      I am trying to use one button to check answers for two input text fields:

      answer1 = $4000.00
      answer 2 = $6000.00

      all feed back displays in the comment (dyanmic text) field.

      Problem - I cannot get both var input text fields to be validated by one button.

      Here is what I have for the actionscript so far:

      on (release) {
      if (answer1 == "$4000.00"){
      // checking if user's answer is equal to the right one
      comment = "Very good. The asset limits are $4000.00 for a group of 1 and $6000.00 for a group of 2. Also, divestment has no effect on eligibility for any of the buy-in programs.";
      }
      else{
      comment = "Not quite. The asset limits are $4000.00 for a group of 1 and $6000.00 for a group of 2. Also, divestment has no effect on eligibility for any of the buy-in programs."};
      if(answer2 == "6000.00"){
      // checking if user's answer is equal to the right one
      comment = "Very good. The asset limits are $4000.00 for a group of 1 and $6000.00 for a group of 2. Also, divestment has no effect on eligibility for any of the buy-in programs.";
      }
      else{
      comment = "Not quite. The asset limits are $4000.00 for a group of 1 and $6000.00 for a group of 2. Also, divestment has no effect on eligibility for any of the buy-in programs.";
      }
      }

      _______________

      Any suggestions/comments are appreciated!