Thylacine
04-01-2003, 10:16 PM
I want a warning to pop up when people have not entered anything for their name, but try to press continue.
My problem is that even when someone has entered their name, the box pops up and says they have not.
Why does it do this?
(action on the frame)
namo = "";
if (namo == "") {
conbutt.onPress = function() {
//tell the person they need to enter their name
};
}
if (namo != "") {
conbutt.onPress = function() {
//go to the next page
};
}
I have a feeling the answer to this is really obvious and I'll look kind of dumb..:)
My problem is that even when someone has entered their name, the box pops up and says they have not.
Why does it do this?
(action on the frame)
namo = "";
if (namo == "") {
conbutt.onPress = function() {
//tell the person they need to enter their name
};
}
if (namo != "") {
conbutt.onPress = function() {
//go to the next page
};
}
I have a feeling the answer to this is really obvious and I'll look kind of dumb..:)