Hi!
I got this code:
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