Hello everybody,
i have a problem adding a stylesheet to my textarea to format the html text.

Thats my code

class:
public static var styles:String = "a { color: #33CCFF; } a:hover { color:
#3366CC; text-decoration: underline; }";
public static var myStyleSheet:StyleSheet = new StyleSheet();

renderer:
StyleableTextField(this.txtMessage.textDisplay).styleSheet =
Class.myStyleSheet;
StyleableTextField(this.txtMessage.textDisplay).htmlText = data.message;


Error:
Error: Error #2009: This method cannot be used on a text field with a style
sheet.


I also tried calllater no success, any ideas?



<s:TextArea id="txtMessage" width="100%" height="100%" editable="false" 
                borderVisible="false" 
skinClass="spark.skins.mobile.TextAreaSkin" />



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/styleSheet-and-textarea-Problem-tp6543.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to