2010-08-31

Setting focus on a Flex app after its loaded

Every notice that after a Flex application is loaded by the browser that it doesn't have focus? So if your Flex application has a login screen, you actually have to grab the mouse and click somewhere on the Flex app for it to gain focus and for you to start typing. Well here is a quick and simple example of how to solve this problem on Firefox and IE. Doesn't work on Chrome and Safari...ah those bloody browsers again!

No comments: