There is no known way to activate the player on browser startup for every 
browser, which is what is needed to actually start typing in a TextInput.  
There is a way that often works on IE and requires JavaScript, but does not 
work on Mozilla or most other browsers.  You'll need to encourage your user to 
click on the area of the browser covered by the application, or else they will 
have to hit TAB enough times to get from the browser to the first control in 
your application.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On 
Behalf Of koti reddy
Sent: Friday, May 01, 2009 8:51 AM
To: [email protected]
Subject: Re: [flexcomponents] TextInput focus problem




Try this and see...
focusManager.setFocus(textInputId);
textInputId.setSelection(0,0);

Or
textInputId.setFocus();
textInputId.setSelection(0,0);

________________________________
From: Anjum Shahzad <[email protected]>
To: [email protected]
Sent: Wednesday, April 29, 2009 11:06:59 PM
Subject: Re: [flexcomponents] TextInput focus problem
Hi,
thanks for reply.setFocus( ) method just highlight the textInput but cursor 
does not blink.user is unable to enable text.the scanrio is,when application 
load a first login screen,i want to set focus on username textfield by 
default.is there any other solution plz help me.
----- Original Message -----
From: Jeffry Houser<mailto:[email protected]>
To: flexcomponents@ yahoogroups. com<mailto:[email protected]>
Sent: Wednesday, April 29, 2009 7:08 PM
Subject: Re: [flexcomponents] TextInput focus problem


 listen to the creationComplete event, and in the handler do

 myTextInput. setFocus( );

Anjum Shahzad wrote:
Hi,

I have a problem with TextInput.How to focus on the
TextInput with cursor blinking when the application loads.

plz help me.


--

Jeffry Houser, Technical Entrepreneur

Adobe Community Expert: http://tinyurl. com/684b5h<http://tinyurl.com/684b5h>

http://www.twitter. com/reboog711<http://www.twitter.com/reboog711>  | Phone: 
203-379-0773

--

Easy to use Interface Components for Flex Developers

http://www.flextras .com?c=104<http://www.flextras.com?c=104>

--

http://www.theflexs how.com<http://www.theflexshow.com>

http://www.jeffryho user.com<http://www.jeffryhouser.com>

--

Part of the DotComIt Brain Trust


Reply via email to