mApplication.onActivate()

Availability

SupportPCMacPackage (AS3) / Scope (AS2)
ActionScript 3.0

ActionScript 2.0

2.0 or later

1.1 or later

global

Usage

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

Parameters

active

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.

This AS2 event handler function is replaced by a standard event object in AS3: see mApplicationEvent.ACTIVATE

ActionScript 2.0 Example:

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

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

See Also

mWindow.onActivate(), mApplicationEvent.ACTIVATE

Code Examples

HelloWorld_Flash_AS3, HelloWorld_Flex_AS3,

Code Examples

Application Basics, mProjector Class Basics - mApplication