That's pretty interesting!
I want to find ways to animate text, and will play with this code...ty

------------------------------
David Pariente
RIA consultor
------------------------------

El 08/01/2010, a las 22:48, Tibor Ballai <[email protected]> escribió:

Hi,

You can extend the Text component and change its 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.






      

Reply via email to