View Full Version : Help!!!! Need flash to check for Variable.
Aikido
August 20th, 2002, 09:35 PM
Ok, here's what I'm trying to do
Text box input var= data1
Text box input var=data2
on (release) {
if (data1=="flash") {
gotoAndPlay("right");
} else {
gotoAndPlay("wrong");
}
}
how do I get flash to check for both data1, and data2?
upuaut
August 21st, 2002, 02:30 AM
on (release) {
if (data1=="flash"&&data2=="somethingElse") {
gotoAndPlay("right");
} else {
gotoAndPlay("wrong");
}
}
a couple others that might be useful
&& "check to see if both are true"
|| "check to see if either is true"
!= "check to see if this is not equal to"
! "check to see if this is boolian 'false'"
Aikido
August 21st, 2002, 04:57 AM
thanx alot, but I noticed that the input data was case sensitive. Is there a way to stop that?
Aikido
August 21st, 2002, 02:05 PM
Nm, figure it out. toLowerCase()
upuaut
August 22nd, 2002, 01:12 AM
ooo good code to know. I hadn't heard of that tidbit. Thanks for posting it.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.