Re: [Flashcoders] Close/exit browser AS event?

2006-09-21 Thread Rich Rodecker
I use the javascript method, except i use the swfobject/javascript integration kit...works fine for me. On 9/21/06, David Rorex <[EMAIL PROTECTED]> wrote: The only way I know to do it is from javascript, and then call to flash using ExternalInterface, which is synchronous, thus the browser ca

Re: [Flashcoders] Close/exit browser AS event?

2006-09-21 Thread David Rorex
The only way I know to do it is from javascript, and then call to flash using ExternalInterface, which is synchronous, thus the browser cannot exit until the flash function call finishes (so it wont 'zap' the flash object in the middle of your cleanup) -David R On 9/21/06, Michel Gaudette <[EMAI

[Flashcoders] Close/exit browser AS event?

2006-09-21 Thread Michel Gaudette
Hi! Do any of you know how to catch the event (in Flash/AS) when a browser is closed or zapped? I think I could use the JavaScript unloadPage if it's called before the Flash object is zapped, but I'd prefer to use some sort of onUnload() on the main timeline... Any clues? Thanks! Michel _