hugobossv8
07-13-2004, 04:30 PM
From what I can tell, Flash has no methods for determining if the Flash Object has been unloaded when the browser window closes. First of all, is this correct?
Second, my problem is that I need to call a script inside flash that sends a remoting call to save state to a session. I've tried using a combination of TCallLabel and onBeforeUnload, but the browser has no way of being able to tell if Flash has completed the script, and the window unloads before the script completes.
Any ideas on what I can do to fix this? I've tried using setTimeout, but that doesn't appear to have any effect with onBeforeUnload.
Thanks.
Second, my problem is that I need to call a script inside flash that sends a remoting call to save state to a session. I've tried using a combination of TCallLabel and onBeforeUnload, but the browser has no way of being able to tell if Flash has completed the script, and the window unloads before the script completes.
Any ideas on what I can do to fix this? I've tried using setTimeout, but that doesn't appear to have any effect with onBeforeUnload.
Thanks.