Flash CS3 Documentation |
|||
| Learning ActionScript 2.0 in Adobe Flash > Working with Text and Strings > Formatting text with Cascading Style Sheet styles > Applying styles to a TextField object | |||
To apply a style sheet object to a TextField object, you assign the style sheet object to the text field's styleSheet property.
textObj_txt.styleSheet = styles;
|
NOTE |
|
Do not confuse the |
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 property 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.Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00000912.html