Thank you, thank you, thank you. Hit the nail right on the head:
this.textField.alwaysShowSelection = true; Mark _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 21 May 2007 18:52 To: [email protected] Subject: RE: [flexcoders] How to keep TextArea from losing focus? I think you want subclass, get to the inner TextField and set alwaysShowSelection on it. _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Monday, May 21, 2007 4:35 AM To: [email protected] Subject: RE: [flexcoders] How to keep TextArea from losing focus? I've tried using systemManager.stage.focus and the various setFocus and MOUSE_FOCUS_CHANGE / KEY_FOCUS_CHANGE (with preventDefault) being called. But the focus is still lost from the Text Area. This is what I'm doing currently: this.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, handleMouseFocusChange); this.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, handleKeyFocusChange); this.textField.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, handleMouseFocusChange); this.textField.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, handleKeyFocusChange); private function handleMouseFocusChange(event:FocusEvent):void { event.preventDefault(); } private function handleKeyFocusChange(event:FocusEvent):void { event.preventDefault(); } I hoped that would stop the focus from moving away from the text area - but it doesn't. Thanks, Mark -----Original Message----- From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com [mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com] On Behalf Of Tom Chiverton Sent: 21 May 2007 12:29 To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com Subject: Re: [flexcoders] How to keep TextArea from losing focus? On Monday 21 May 2007, Mark Ingram wrote: > Hi, how can I stop a text area from losing focus? I always want it to > show the selection, no matter if the user is in another control. Have you tried the various focus related methods listed in the LiveDoc ? -- Tom Chiverton Helping to enthusiastically build industry-wide applications on: http://thefalken. <http://thefalken.livejournal.com> livejournal.com **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups. <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail- <http://www.mail-archive.com/flexcoders%40yahoogroups.com> archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links

