I have a simple dynamic text quiz created that displays either "wrong" or "correct" based on the text the user enters in the field. However, mine only works if they key in the correct text using all lower case letters. I would like them to be able to enter either upper or lower case letters and as long as they are spelled correctly (match the if_input text correctly) it will be considered correct. I have tried variations of Keyallowed with no success. There are 3 text fields, labeled input1, input2 and input3 and answer. I have attached current code I have below.
but.onRelease = function(){
if(_root.input1.text=="answerone"&& _root.input2.text=="answertwo"&& _root.input3.text=="answerthree"){
answer.text = "Correct"
}else{
answer.text = "Wrong"
}
}
thanks!
but.onRelease = function(){
if(_root.input1.text=="answerone"&& _root.input2.text=="answertwo"&& _root.input3.text=="answerthree"){
answer.text = "Correct"
}else{
answer.text = "Wrong"
}
}
thanks!