Text and Field Formatting


/ Published in: ActionScript 3
Save to your folder(s)

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.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.