mApplication.onQuit()

Availability

Windows: Flash 8 or 9 AS2.0 SWF + mProjector 3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector 2.0;

Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector 1.1;

Usage

mApplication.onQuit = function () {
   // your statements here
}

Parameters

None.

Returns

Nothing.

Description

Event handler; An event handling function called just before the application closes. No asynchronous functions should be called at this point as the application will close before they are completed.

Example

The following example sets a new onQuit() event handling function.

mApplication.onQuit = function ()
{
    mSystem.openDocument("http://www.binarynoise.com");
}

See Also

mWindow.onClose()

Code Examples

mProjector Class Basics -- mApplication