For some reason I can not pass formatting to dynamically created text fields, here’s the code:
createTextFields(0,0,“classDate_txt”);
function createTextFields(newX,newY,newName){
this.createTextField(newName,this.getNextHighestDepth(),newX,newY,500,40)
newName.type = “dynamic”;
newName.html = true;
newName.border = true;
newName.borderColor = 0xFF0000;
newName.autoSize = true;
newName.textColor = 0x000000;
newName.wordWrap = true;
}
If I change newName to classDate_txt, it works. I trace newName and it shows up as classDate_txt. What is going on here?