When you refresh the browser with a flex app running fullscreen, obviously the flex app should be focused…. but it’s not đ
Here’s a really easy way to set keyboard focus on your flex or flash embeded code. Basically, just paste the code below into the bottom of your html. After the page loads, this code gets called and sets the focus on your embeded swf.
FLEX Note: You’ll want to apply this code to your “html-template/index.template.html”.
FLASH Note: If you are using this code outside of flex then you will want to replace ${application} with the ID of your swf.
<script language="JavaScript" type="text/javascript">
<!--
document.onload = document.getElementById('${application}').focus();
-->
</script>
</body>
</html>
-p
note: not sure this works in IE. will test soon.