Title: Unselecting text in a field using AS
Selection.setFocus(yourField.text.length, yourField.text.length);
 
----- Original Message -----
Sent: Friday, March 18, 2005 8:13 PM
Subject: [flexcoders] Unselecting text in a field using AS

If I use actionScript to send focus to a textInput or editable comboBox Flex automatically selects the contents in that field.  Is there a way I can unselect the text?  I've tried resetting the value of the text property, but it doesn't unselect the contents.  What I'd like to do is unselect the contents and move the cursor to the end of the text in the field.

Thanks in advanced,
Greg


----
This email may contain confidential and privileged material for the sole use of the intended recipient(s). Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

To reply to our email administrator directly, send an email to
[EMAIL PROTECTED]

Littler Mendelson, P.C.
http://www.littler.com



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to