Problem with dynamically creating input text field with a label

Hi,
I am trying to dynamically create a input type text field with a label. The label number increments everytime an input text box is created by a button.
somebody help me with code please. I get the input OK but the label will not appear. I am a newbie to actionscript.

var t=0
t++
_root.createTextField(“txt1”,2,25,25,10,10);
txt1.text = "Label " + t (//this is used as a Label…is this correct)
txt1.autoSize = true
txt1.type = “input” (// I assume this will work as text input)