This will work to detect when a Flex window loses focus, but to determine when a window regains focus without actually clicking on the flex application, an update in the HTML shell is required, right? Sort of:
<script language="JavaScript" type="text/javascript"> function onAppFocusIn() { ${application}.onAppFocusIn(); alert("onAppFocusIn"); } </script> <body scroll="no" onFocus="onAppFocusIn()">
I am trying to implement this, but the onAppFocusIn () function is not executed as soon as I return to the flex application window. When I look at the source, the code is there. Does anyone know why?
Thanks Annie
Annie
source share