Dynamic Text Question

Hello

I have a dynamic text box and I would like to be able to use actionscript 3 to change the color,font,size, etc. of only HALF the dynamic text. Is there a way to use the TextFormat class (or another way) to format half the string and append it to the end of the dynamic text?

  • I also don’t want to use server side script or anything outside of flash.

I want to do this:

[SIZE=4]Hello World -> Hello [COLOR=blue]World[/COLOR][/SIZE]
[SIZE=4][COLOR=#0000ff][/COLOR][/SIZE]
[COLOR=black]Example: change the color of Half of the dynamic text box.[/COLOR]

Thanks in advance!