Groups | Blog | Home
all groups > flash actionscript > april 2007 >

flash actionscript : More than one right answer for input text


elearningdiva
4/4/2007 9:47:04 PM
How can I set up my input text box to accept more than one answer? For
example, right now it accepts "checking", but I also want it to accept,
"Checking" with a capital C.

Here's my actionscript that I'm using:

var type1_str:String="checking";
submittype1_btn.onRelease=function() {
if (type1_txt.text == type1_str) {
gotoAndStop(13);
}
}

Thanks!
pcst88
4/4/2007 9:53:37 PM
var type1_str:String="checking";
var type2_str:String="Checking";
submittype1_btn.onRelease=function() {
if (type1_txt.text == type1_str || type1_txt.text == type2_str) {
gotoAndStop(13);
}
elearningdiva
4/4/2007 10:01:08 PM
AddThis Social Bookmark Button