使用超过 1 种字体颜色的最佳方法是什么textField.htmlText
?
我已经使用如下代码:
textField.htmlText = "blaa blaa" + "< u >"+w+"< /u >"+"blaa blaa"
我怎样才能让它定义一个特定的颜色呢?
使用超过 1 种字体颜色的最佳方法是什么textField.htmlText
?
我已经使用如下代码:
textField.htmlText = "blaa blaa" + "< u >"+w+"< /u >"+"blaa blaa"
我怎样才能让它定义一个特定的颜色呢?
var style:StyleSheet = new StyleSheet();
var underline:Object = new Object();
underline.fontWeight = "bold";
underline.color = "#FF0000";
underline.display = "inline";
style.setStyle("u", underline);
textField.styleSheet = style;
textField.htmlText = "blaa blaa" + "< u >"+w+"< /u >"+"blaa blaa"
字体标签更容易