[MX] form check AS

ok I dont get it… I have a simple contact form, and a basic if/else to check if certain fields have been left blank… if they have frame two displays an error message, if filled in then it posts the vars and goes to frame three thanking the user. For some reason this code ALWAYS returns false:

 on (release) {
	if (name eq "" or address eq "" or city eq "" or state eq "" or zip eq "" or phone eq "" or email eq "" or projects eq "") {
		_root.gotoAndStop(2);
	} else {
		_root.gotoAndStop(3);
		loadVariablesNum("contact.php", 0, "POST");
		
	}
}

And this ALWAYS returns true:

 on (release) {
	if (name == "" or address == "" or city == "" or state == "" or zip == "" or phone == "" or email == "" or projects == "") {
		_root.gotoAndStop(2);
	} else {
		_root.gotoAndStop(3);
		loadVariablesNum("contact.php", 0, "POST");
		
	}
}

WTF is going on with this?

peace

well I got it to work. That code will only work if the submit button is an actual ‘button’ and not if it is an MC.

Could someone explain why this is, I’d really like to know. Thanks in advance.

Peace

when writing code on a button, the script referes to the timeline that the button is instanciated on.
when writing code on a mc, it is as if you wrote the code on that mc’s timeline.
So what on a btn is this., is _parent., when written on a mc.
Hope that made some sence!?