i’ve a mc, and inside that mc, there are some textboxes called “message1” “message2” “message3” and so on.
scrollPane’s content is the mc.
now, to change text inside those textbox i do this:
for ( i = 1 ; i < 5 ; i++ )
{
myScrollPane.content.eval("message" + i).text = "hi there";
}
but this doesn’t work, because of eval() function, how do i solve this problem? thanks
edit: or is there any way i can do something like this:
objName = eval("message" + i);
myScrollPane.content.objName.text = "hi there";
(i’m thinking no, because this would be like creating a new object)