mWindow.onActivate()

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

mWindow.onActivate = function (active:Boolean) {
   // your statements here
}

Parameters

active - True or false, depending on whether the window is being activated or deactivated.

Returns

Nothing.

Description

Event handler; An event handling function called after a window is activated or deactivated.

Example

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

mWindow.onActivate = function (active)
{
    mWindow.windowIsActive = active;
}

See Also

mApplication.onActivate()

Code Examples

Application Basics