Text in dynamically generated textbox not showing

Hi
I am generating the textboxes dynamically based on the user input.

I used tbox.text=“Hello”; but it doesnt seems to show anything in the resultant textbox although trace seems to work

[AS]
_root.attachMovie(“Team_Name”, “Team_Name”+x, x+p);
_root[“Team_Name”+x]._y = position;
//“box”+x._y = 20;
_root[“Team_Name”+x]._x = 150;
Tno=x+1;
_root[“Team_Name”+x].text=“Team”+Tno;
// _root[“Team_Name”+x].visible=true;
trace(_root[“Team_Name”+x].text); // It works!!
[/AS]

Can anyone please help?