/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//create title default sheet var defStyle:StyleSheet=new StyleSheet(); var styleObj:Object=new Object(); styleObj.color="#"+"FF0000"; defStyle.setStyle("p",styleObj); //add sheet to text txtField.styleSheet=defStyle; //add the text txtField.htmlText="text here";