PDA

View Full Version : Please Help!! check "input text"....


ursmile
08-07-2005, 06:08 PM
Please read this SWF:
http://forum.o---o.info/temp.swf

I would like to check the "input text" have data or not.
but why when the "input text var data" is Empty, but the result is not Empty?
Why?
How can i check the "input text" is empty or not?
thanks a lot!
:) :) :) :)

sophistikat
08-07-2005, 10:56 PM
whats with $data? your script should look like this
on (release, keyPress "<Enter>"){
if (show eq ""){
show = "Empty";
} else {
show = "Not Empty";
}
if (data eq "")
{
data= "Empty";
} else {
data = "Not Empty";
}
}

// you can also type your if statements like this
(show eq "") ? show = "Empty" : show = "Not Empty";
(data eq "") ? data = "Empty" : data = "Not Empty";