title: How to subscribe for an javascript event form Flex 3 action script code?
body: <p>We have that Flex app talking to the server. We need some kind of <em>FlexEvent.ON_BROWSER_WINDOW_CLOSE</em> event but, unfortunately Flex does not provide such.</p>
  
  <p>So I've got the advice to catch a javascript "onbeforeunload" event and call the flash client thru the ExternalInterface-registred method.</p>
  
  <p>Is there any way to subscribe for a javascript event without any javascript code?</p>
  
  <p><strong>Update</strong> I'm want to do that is multiply flash app hosting pages. Certainly we could manage that by external javascript file, but it's unclear still...</p>