mApplication.getWindow()

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 2.0;

Usage

mApplication.getWindow() : Object

Parameters

None.

Returns

An object.; ; An extended mWindow object of the main window.

Description

Method; Returns the application's main window object. This can be used by any child window wanting to accesss the application window.

Example

The following example gets the main projector's mWindow object, and calls one of its methods. Note that you can define your own custom mWindow methods and call them from within a child window's ActionScript code.

var win = mApplication.getWindow();
if (win)
{
    win.doSomething();
}

Code Examples

Creating and Controlling Multiple Windows, Window to Window Communications