hello,
heres my simple custom class for creating textfields
public static function createText(container :Sprite,
value :String,
selectable:Boolean,
autoSize :String,
embed :Boolean = false,
textFormat:TextFormat = null):TextField{
var textField:TextField = new TextField();
textField.selectable = selectable;
textField.autoSize = autoSize;
textField.embedFonts = embed;
textField.text = value;
container.addChild(textField);
if(embed){
textField.setTextFormat(textFormat);
}
return textField;
my problem is when i’m trying to re-assing new value text like
textField.text = “some text”;
the textField is empty
any ideas?