In 1.5, there is the problem that sometimes the Flash Player object itself does not have the focus.  Workarounds usually involve a custom wrapper that uses _javascript_ to set focus to the Flash Player(Flex app).

 

There are examples on CFLEX.net.

 

Tracy

 


From: [email protected] [mailto:[email protected]] On Behalf Of Michael Schmalle
Sent: Wednesday, May 10, 2006 5:07 PM
To: [email protected]
Subject: Re: [flexcoders] Setting the insertion point (caret) in a text input field

 

Hi,

You could use an event listener for the controlName component FocusEvent.FOCUS_IN

and in the handler

event.currentTarget.setSelection(0,0);

I am not sure where the setSelection() method comes from throught the event. Most likly it's the currentTarget property.

something like that ?

setSelection(beginIndex:int, endIndex:int):void

Peace, Mike

On 5/10/06, d93574 <[EMAIL PROTECTED]> wrote:

When my application starts I want the user to be able to begin
typing without having to use the mouse.

When I call "controlName".setFocus the focus is set to the correct
control, but the mouse caret is not set until I click somewhere in
flex application.  It seems the focus is still set on the browser.

Any clues as to get around this?

Thanks

Jim Kohn





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



SPONSORED LINKS

Web site design development

Computer software development

Software design and development

Macromedia flex

Software development best practice

 

 


YAHOO! GROUPS LINKS

 

 





--
What goes up, does come down.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to