Monday, May 10, 2010

focus textInput In flex application

Here is simple solution:

Goto your project >> html-template folder >> index.template.html >>
open it.

Now edit JavaScript in that as follow:-

PUT THIS : document.DocumentName.focus(); ///Document name is your
flex Ex: – main.mxml file just give main

THIS BECAUSE SETFOCUS() JUST FOCUSES FLASH PLAYER NOT BROWSER TO SET
FOCUS WE CAN ADD ABOVE SINGAL LINE IN FOLLOWING CODE AS i DID.

No comments:

Post a Comment