Text in dynamically generated textbox not showing

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

_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;
// _root[“Team_Name”+x].visible=true;
trace(_root[“Team_Name”+x].text); // It works!!

Can anyone please help?