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 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:


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