RE: [Flashcoders] multiple TextFormats in one TextField

2008-02-07 Thread Mendelsohn, Michael
Thanks Gregory. That's exactly what I did and it worked perfectly. - MM 1) in a loop (or in any other way), you create the resulting text with default formatting. 2) at the same time, you record (in arrays) - start/end positions of each string - its TextFormat 3) When the result text

Re: [Flashcoders] multiple TextFormats in one TextField

2008-02-06 Thread Gregory N
Hi Michael, While I don't know the details of your application, I would consider applying TextFormat only once, when all strings are added. This means: 1) in a loop (or in any other way), you create the resulting text with default formatting. 2) at the same time, you record (in arrays) -

Re: [Flashcoders] multiple TextFormats in one TextField

2008-02-06 Thread Jon Bradley
Mendelsohn, Michael wrote: How can I preserve certain substrings of the text to keep their assigned TextFormats? Before you add text to a text field that has a different format than the default that you've specified (with setTextFormat), use setNewTextFormat() on the field and then

[Flashcoders] multiple TextFormats in one TextField

2008-02-04 Thread Mendelsohn, Michael
Hi list... I'm trying to concatenate a bunch of strings into one TextField, with each string using a specific TextFormat. I'm doing a loop of adding text, formatting that text, then adding more text, formatting it, etc. The problem is whenever I add new text, the entire text in the TextField