/ Published in: ActionScript 3
myTextField.defaultTextFormat = format; myTextField.setTextFormat(format); Both can be used. The difference is, setTextFormat will only change the text currently in the text field. Any new text inserted into the text field will revert back to its default. defaultTextFormat changes the default which will change the format for the current text and all future text.