TextArea does not "officially" support multiple text styles. Use RichTextEditor instead.
By using getTextField() you are using unsupported APis that could go away in a future release. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Derrick Anderson Sent: Friday, April 11, 2008 12:57 PM To: [email protected] Subject: Re: [flexcoders] insert at cursor position in textarea i was able to do it w/out subclassing like so: private function handleMergeFieldClick(event:*):void { textArea.getTextField().replaceSelectedText('['[EMAIL PROTECTED]']'); } works like a charm, except now I realize I would like some color applied to the text that was inserted. is there a similar function like replaceSelectedText but that will replace selected text with a TextRange object? thanks, d. On Fri, Apr 11, 2008 at 2:16 PM, Alex Harui <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: No method on TextArea, but you can subclass and get to the underlying TextField and call replaceSelectedText ________________________________ From: [email protected] <mailto:[email protected]> [mailto:[email protected] <mailto:[email protected]> ] On Behalf Of Derrick Anderson Sent: Friday, April 11, 2008 7:19 AM To: [email protected] <mailto:[email protected]> Subject: [flexcoders] insert at cursor position in textarea hey does anybody know how to insert a string at the current cursor position in a textarea? i thought there was a method like textArea.insertTextAt() but i can't find anything like that. thanks, d.

