setSelection is correct. What do you mean by "not able to store it"? You may also need to subclass, get to the internal textfield and flip the alwaysShowSelection property.
________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of getflex Sent: Tuesday, May 13, 2008 9:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] highlighting text Hi everyone.. Which is the best way to highlighting the textArea text. i tried with setSelection but cant able to store it..anyone help me out... Thanks