Thanks Jim It is surprising that Flex does not provide that i built functionality. Anyways I will try to implement JavaScript way. Anuj
On Wed, Nov 12, 2008 at 7:42 AM, jim.abbott45 <[EMAIL PROTECTED]>wrote: > In order for this to work, your application _as a whole_ needs to do > two things. One of them is (in Flex) to use the setFocus() method to > specify where (in the Flex applications) focus should go. From your > posting it appears that you have already done this. > > The other thing is that the _entire Flex application itself_ needs to > first get focus. This is not done in Flex, it needs to be done in the > 'HTML Wrapper' page which loads the Flex application. Please locate > your Flex project's "index.template.html" file and open it for > editing. Then add JavaScript code which will cause the Flex > application to receive focus when the HTML page is loaded. The > simplest way to do this is to add an inline event handler to the > page's <BODY> element. For example, if the HTML Wrapper page is being > viewed in the IE v7 Web browser, then the following code should work: > > <body scroll="no" onLoad="window.document.${application}.focus();"> > > Please note that the behavior might be slightly different in other > browsers (i.e., FireFox, Safari, etc.) and you may have to tweak the > JavaScript code to achieve a robust solution. > > Regards, > Jim > > > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, > "anuj181" <[EMAIL PROTECTED]> wrote: > > > > Hi > > Is it possible to set the cursor to the text input while your app > > loads. I am using setFocus to particular text input but it is just > > setting the focus to my text box but not the cursor. Is it possible to > > set the cursor to the text box on the app load. > > Thanks > > Anuj > > > > >