[Flashcoders] dynamic string color switching

2006-10-09 Thread Doug Tangren
I was wondering if if is possible to dynamically change the color of parts of a string within a single text field. I know how to set the color of the whole text by applying a new Text format object to a text field but I was wondering how I might apply a different color to a substring of

RE: [Flashcoders] dynamic string color switching

2006-10-09 Thread Steven Sacks | BLITZ
I was wondering if if is possible to dynamically change the color of parts of a string within a single text field. You can do it with an HTML textfield. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] dynamic string color switching

2006-10-09 Thread Michael Bedar
If you want to use TextFormat, you can apply a textformat to a text selection. A quick way to do this without creating a bunch of new textformat objects is to copy the current format into a temp var using tf.getTextFormat(), change the color, and the apply it to the selection with

Re: [Flashcoders] dynamic string color switching

2006-10-09 Thread Doug Tangren
Thank you. This exactly what I was looking for. I didn't know you could pass indexes as arguments to the setTextFormat method. Doug Tangren [EMAIL PROTECTED] On Oct 9, 2006, at 2:33 PM, Michael Bedar wrote: If you want to use TextFormat, you can apply a textformat to a text selection.