Hi,
You can extend the Text component and change its textField
<http://www.adobe.com/livedocs/flex/3/langref/mx/controls/Label.html#textField>
property's text format.
var normal:TextFormat=new TextFormat();
var bold:TextFormat=new TextFormat();
normal.bold=false;
bold.bold=true;
//set the first 5 characters to bold
this.textField.setTextFormat(bold, 0, 5);
//set the next 5 chars to normal
this.textField.setTextFormat(normal, 5, 10);
Tibor.
www.tiborballai.com
cvsikh wrote:
Hi,
I was curious to know if it is possible to have both bold and normal
text in a text component? I know this can be achieved using htmltext
however I am not interested in using that since you cannot pass
dynamic fields to it.