I've been using as3 for a lot of years but everytime I need to manipulate fonts I get crazy :(
My setup: I'm filling up via code a movieClip with a lot of dynamic textFields. Their values come from an external XML.
My problem: my client wants to insert html tags inside of the xml to have bold text in part of them. For example they want to have: "this string with this part bold". The Xml part is ok, formatted with CDATA and so on. If I trace the value coming from the xml is html, but it is shown as regular text inside the textfield....
The textfields are using client custom font (not system font), and have the font embedded via embedding dialog panel in Flash by the graphic designer.
Any help?
This is the part of code that fills up the textfields (is inside a for loop)
var labelToWrite:String = labelsData.label.(@id == nameOfChildren)[VarHolder.activeLang];
if (labelToWrite != "") {
foundTextField.htmlText = labelToWrite;
// trace ("labelToWrite is -->" +labelToWrite);
}
And the trace outputs me
This should be <b>bold text with b tag</b> and this should be <strong>strong text </strong>.