Dynamic input text field

Hi:

For some reason I can’t figure this out. I am creating an input text field. I want the text that the user inputs to be assigned to a variable. For some reason the user can only input text if I put a text property in. So i set the variable to have a starting value. However when the user input does not change the variable, so it still comes up as the original value.

this.createTextField(“pic3Tag”, p++, 5, 170, 250, 100);
pic3Tag.type = “input”;
pic3Tag.border = true;
pic3Tag.background = true;
pic3Tag.multiline = true;
pic3Tag.text = myTag;
pic3Tag.embedFonts = true;
pic3Tag.variable = myTag;
pic3Tag.setTextFormat(textFormat);

i’m so confused.