![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
To apply a style sheet object to a text field, you assign the style sheet object to the text field's styleSheet
property.
textObj_txt.styleSheet = styleSheetObj;
Note: Be careful not to confuse the TextField.styleSheet
property with the TextField.StyleSheet class. The capitalization indicates the difference.
When you assign a style sheet object to a TextField object, the following changes occur to the text field's normal behavior:
text
and htmlText
properties, and any variable associated with the text field, always contain the same value and behave identically.setTextFormat()
and replaceSel()
methods of the TextField class no longer function with the text field. The only way to change the field is by altering the text field's text
or htmlText
properties, or by changing the text field's associated variable.text
property, htmlText
property, or associated variable is stored verbatim; anything written to one of these properties can be retrieved in the text's original form.![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |