# Textfield inside a mc?

**URL:** <https://forum.kirupa.com/t/textfield-inside-a-mc/204687>\
**Category:** flash\
**Created:** [October 22, 2006, 4:12pm UTC](https://forum.kirupa.com/t/textfield-inside-a-mc/204687 "2006-10-22T16:12:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [October 22, 2006, 4:12pm UTC](https://forum.kirupa.com/t/textfield-inside-a-mc/204687/1 "2006-10-22T16:12:27Z")

</div>

Well, I have this code for my asp mailform. What I want is to be able to set onRollover on my textfields. It doesn’t work directly on the textfields so I have to convert to mc and so on. That I know, what I cant figure out is how to write in this code when the textfields are inside an mc? Anyone?

```auto

this.send_mc.onRelease = function() {
	if (!adress.length || adress.indexOf("@") == -1 || adress.indexOf(".") == -1) {
	emailStatus = "Your e-mail, please";
 	}
 	else if (!name.length) {
 	emailStatus = "Your name, please";
 	}
 	else if (!message.length) {
 	emailStatus = "Say something";
 	}
 	else 
	{
 	loadVariablesNum ("ASPMail.asp", "0", "POST");
 	emailStatus = "Message sent";
 	}
}

```
