Below is text for creating textfield on the fly. I want to create multiple fields, so I have variables for the names. But the code does not work - any ideas as to what is wrong?
loadText = new LoadVars();
loadText.load(“data.txt”);
loadText.onLoad = function() {
myString = new String(this.row);
myTextField = new TextField();
myTextField.createTextField(myString,1,33,67,20,16);
with (myTextField){
text = this.row;
border = true;
myformat = new TextFormat();
with (myformat){
font = “Arial”;
color = 0xff0080;
size = 10;
bullet = false;
underline = true;
}
setTextFormat(myformat);
}
};