Using CSS with HTML Text

Flash allows you to use CSS (Cascading Style Sheets) to apply formatting to HTML text. In order to accomplish this you should first create a TextField.StyleSheet object. For example:

var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();

For more information on using CSS read the ActionScript Bible. You can learn more about the ActionScript Bible at the Wiley Web site.