This might help: http://www.kirupa.com/forum/showthread.php?309561-Event-listener-when-closi ng-Flash-application
-Alex On 2/20/15, 10:48 AM, "Darrell Loverin" <darrell.love...@gmail.com> wrote: >Here's a code snippet: > >*this*.loaderInfo.addEventListener(Event.UNLOAD, unloadHandler); > >On Fri, Feb 20, 2015 at 1:47 PM, Darrell Loverin ><darrell.love...@gmail.com> >wrote: > >> yes, but I don't get an event. >> >> On Fri, Feb 20, 2015 at 12:11 PM, Alex Harui <aha...@adobe.com> wrote: >> >>> Did you try the UNLOAD event on LoaderInfo? >>> >>> >>> >>>http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash >>>/di >>> splay/LoaderInfo.html#event:unload >>> >>><http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flas >>>h/display/LoaderInfo.html#event:unload> >>> >>> On 2/20/15, 6:15 AM, "Darrell Loverin" <darrell.love...@gmail.com> >>>wrote: >>> >>> >This question is about the SWF loaded as a result of being specified >>>with >>> >the preloadSWF key. The "allComplete" event tells the preload SWF when >>> the >>> >application has been loaded but is there an event to tell when the >>> >application is being unloaded so the preload SWF can flush any >>>buffered >>> >data? >>> > >>> >Thanks, >>> > >>> >-Darrell >>> >>> >>