N0 actually it doesn't affect the entire string, if you use the optional params. setTextFormat takes optional index parameters for the index to start the format and end the format.
You can go mytf.setTextFormat(startIndex,endIndex,textFormat) I use that all the time to format something bold, smaller, etc and haven't found a need to use setNewTextFormat. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Wednesday, July 05, 2006 9:34 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] embedFonts vs. setTextFormat That would affect all the text currently in the field. Ian On 7/5/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: > But couldn´t I just set a new TextFormat using the setTextFormat() method? > > On 7/5/06, Andreas Rønning <[EMAIL PROTECTED]> wrote: > > > > Because it allows you to use several different text formats along one > > text string. Especially useful for a chat program, where you'd like the > > user's name to be in a different text style than his chat output. > > > > - A _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

