Catch close/unload event in Actionscript/Flex application?

Since you're looking for an AIR specific solution; you'll want to take listen for the closing event on your main application tag ( WindowedApplication).

Well, think about it for a minute. You're asking for an event, to be fired, when the application closes... so, what fires the event, and what's going to handle it? The application?

But it just closed. You could of course, do something in javascript and check the status of the flash embed, but even that isn't always going to work depending on how the flash player is being unloaded (E.G. the user closes their browser). Furthermore, what happens if the user kills the flash sandbox or browser?

There's no way to send an event from a terminated application.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions