mApplication.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

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

Parameters

active - True or false depending whether the application is being activated or deactivated.

Returns

Nothing.

Description

Event handler; An event handling function called when the application is activated or deactivated. It can be defined in order to change the active/inactive application's appearance.

Example

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

mApplication.onActivate = function (active)
{
    mApplication.isActive = active;
}

See Also

mWindow.onActivate()

Code Examples

Application Basics, mProjector Class Basics -- mApplication