Check simple form

Hi, I’m trying to do a simple form validation, but I get this error:
“Error #1010: A term is undefined and has no properties”

Using this code:

movNewsletter.btnEnviar.addEventListener(MouseEvent.MOUSE_DOWN, functCheckForm);

	function functCheckForm(event:MouseEvent):void {
		if(movNewsletter.inputNome.text == "" || movNewsletter.inputEMail.text == "") {
			movNewsletter.msgSucesso.txtSucesso.text = "O Nome e o e-mail são de preenchimento obrigatório";
		} else { 
			trace ("hi");
		}
	}

If I don’t write nothing all is good, but if I write just one of the fields or both of them, the error appears.

Thanks!