Putting an onPreUnload javascript function in the page's Body tag might be more 
reliable.  As I understand it, this function was conceived to force what you 
want to happen to go to completion before the page is actually closed.
 
-- Bob Hadsell> Date: Wed, 12 Dec 2007 13:17:16 -0500> From: [EMAIL PROTECTED]> 
To: [email protected]> Subject: Re: [Flashcoders] on exit/close 
event> > I don't believe Flash has anything for that (which makes my life> 
difficult too). We use the onClose event when we can, but that's the> best 
we've come up with.> > -Andy> > On Dec 12, 2007 12:49 PM, Andrew Sinning 
<[EMAIL PROTECTED]> wrote:> > In AS2, is there an event that gets triggered 
when the user closes the> > browser window or navigates away from the page 
containing the Flash> > movie? My experience with the javascript onClose event 
in browsers is> > that it's not reliable across platforms and browsers.> >> > 
My goal is to cache the current state of the user's interaction, and I'd> > 
rather not do this continuously, but I guess I'll probably have to pick> > the 
most important places to do this if I can't catch an onClose.> >> > Thanks!> > 
_______________________________________________> > Flashcoders mailing list> > 
[email protected]> > 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders> >> 
_______________________________________________> Flashcoders mailing list> 
[email protected]> 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_________________________________________________________________
i’m is proud to present Cause Effect, a series about real people making a 
difference.
http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to