I am trying to change a small portion of the text inside of a TextArea. My
attached code references the textField of the TextArea component, and attempts
to apply the setTextFormat command on that textField. For some reason this
does nothing. Any ideas?
acpmtf = new TextFormat();
acpmtf.font = i.Font_Family;
acpmtf.size = i.Font_Size;
acpmtf.color =i.Already_Completed_Page_Message_Color;
points.htmlText =
_msm.getCStyle("DefaultAlertText_Already_Completed_Page").toString()+"<br><br>";
// points is a TextArea The getCStyle function calls up the text to enter
into the area from my custom style manager.
acptl = points.text.length;
points.textField.setTextFormat(acpmtf,0,acptl);
rritchey - 29 Sep 2008 18:50 GMT
I was able to resolve this by placing the color I want to change the text to in
as HTML.
points.htmlText = "<font
color='#"+_msm.getCStyle("Default_Already_Completed_Page_Message_Color").toStrin
g().split("0x")[1]+"'>"+_msm.getCStyle("DefaultAlertText_Already_Completed_Page"
).toString()+"</font><br><br>";