# Check simple form

**URL:** <https://forum.kirupa.com/t/check-simple-form/322999>\
**Category:** flash\
**Created:** [June 13, 2011, 6:51am UTC](https://forum.kirupa.com/t/check-simple-form/322999 "2011-06-13T06:51:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stela](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Stela](https://forum.kirupa.com/u/Stela)\
**Post date:** [June 13, 2011, 6:51am UTC](https://forum.kirupa.com/t/check-simple-form/322999/1 "2011-06-13T06:51:56Z")

</div>

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!
