ExternalInterfaceUtil.addExternalEventListener ("window.onunload", handleLogout, "unloadFlex");
package { import flash.external.ExternalInterface; public class ExternalInterfaceUtil { public static function addExternalEventListener( qualifiedEventName:String, callback:Function,callBackAlias:String ):void {
I donβt remember where I got it from, but I used it and it works very well. Of course, not all browsers will work together, but it's better than nothing ...
Joel hooks
source share