# HELP! mc and Textfield

**URL:** <https://forum.kirupa.com/t/help-mc-and-textfield/293206>\
**Category:** flash\
**Created:** [July 24, 2009, 9:43pm UTC](https://forum.kirupa.com/t/help-mc-and-textfield/293206 "2009-07-24T21:43:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webbhelp](https://avatars.discourse-cdn.com/v4/letter/w/4bbf92/32.png) [@webbhelp](https://forum.kirupa.com/u/webbhelp)\
**Post date:** [July 24, 2009, 9:43pm UTC](https://forum.kirupa.com/t/help-mc-and-textfield/293206/1 "2009-07-24T21:43:13Z")

</div>

Hi!

I got this code:

```auto
	for(var i:int=0;i<antal;i++)
	{
		var mc:MovieClip = new MovieClip();
		addChild(mc);
		mc.x = 590;
		mc.y = tarY;
		tarY += 20;
		mc.boo = 'hej';
			var userText:TextField = new TextField();
			userText.text = nodes*;
			mc.addChild(userText);
			
		mc.addEventListener(MouseEvent.CLICK, userList);
}

function userList(evt:Event)
{
	
	trace(evt.target.boo);
	
	
}

```

It doesn’t matter what code I got before the for loop, the problem is when the function userList plays I got the error something like:

\*\*ReferenceError: Error #1069:the property boo couldn’t be found flash.text.TextField and the is no standard value  
at chat\_fla::MainTimeline/userList()  
\*\*

You see it is like, I can’t give the movieclip a “variabel” when it includes a textfield.

Can you please help me, thanks 🙂
