I have a TextField that is formatted with bold and blue. However, when I change TextField.text, the formatting of the textfield resets and I have to setTextFormat again.
This is the code I use to set my TextField. myText is the variable for my TextField. (This is just part of my code; it is part of a function for my EventListener.)
yourName = body_txt.text;
myText.text = "This is the new text";
In AS3 you will want to use the
defaultTextFormatproperty ofTextFieldobject’s.