I finished doing this a week ago if you are interested ... On my first attempt, I used the browsers onUnload event to call a service in the swf, but this did not work. Apparently the object in the DOM is not available to the javascript when browser begins unloading (ie6).
My solution was to make an AJAX call to a jsp, upon onUnload, which in turn called the appropriate java service to log the user out. If this sounds promising to you, or if it makes sense, you can contact me off-list for the code. - mike \ "chrislpigg" To: flexcoders@yahoogroups.com <[EMAIL PROTECTED]> cc: Sent by: Subject: [flexcoders] How do you capture the browser's onclose flexcoders@yahoogroups.com event in Flex 2.0? 01/16/2007 11:13 AM Please respond to flexcoders I need a way to capture the browser's close event so I can log the user out with my Flex 2.0 app.. If anyone knows how to do this... Please help! :) --------------------------------------------------------------------------- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. ---------------------------------------------------------------------------
pic26292.gif
Description: GIF image