Adding a dymamic text box with addchild

I have a movieclip, I want to add the textbox as a child and then put some text in it.

Many thanks.