This piece of script shows how to correctly format dynamic text.


var m:String = "Capitals";
var s:String = "it is working";
var t:String = "#FF0000";
var r:String = "10";
myText.htmlText="< font color=\""+t+"\" size=\""+r+"\" face=\""+m+"\">"+s+"< /font >";