This right here: if (ans1.text == CorrectAnswer1[0,1,2]) No, no, noooooo. Comparisons do not work that way. Comparison operators only work between two specific values, not one value and an entire array (also the array syntax itself is invalid). You have to manually loop over the entire array and check against each element. Something like... var i:Number; var correct:Boolean = false; var txt:String = ans1.text.toLowerCase(); for (i = 0; i < CorrectAnswer1.length; i++) { if (txt == CorrectAnswer1) { correct = true; break; } } if (correct) { result1.text = "Excellent"; } else { result1.text = "Bogus"; } Note that by applying toLowerCase() to the answer string you don't have to faff about with uppercase/lowercase variations of your answers. Ah, wait, I see AS3 supports the indexOf() method on strings. In that case you can simplify things quite a bit: if (CorrectAnswer1.indexOf(ans1.text.toLowerCase()) != -1) { result1.text = "Acceptable"; } else { result1.text = "Unacceptable!"; }
... View more