mWindow.setDockRectangle()

Availability

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

Macintosh: Not Applicable

Usage

mWindow.setDockRectangle(left:Number, top:Number, right:Number, bottom:Number) : Void

Parameters

left - Left edge of the dock rectangle.

top - Top edge of the dock rectangle.

right - Right edge of the dock rectangle.

bottom - Bottom edge of the dock rectangle.

Returns

Nothing.

Description

Method; Sets a window's dock rectangle. This method is used to allow a window to dock at the desktop edges. To exclude an edge from docking, you should specify a negative number.

Example

The following example sets a window's docking rectangle.

var Size = mWindow.getSize();
mWindow.setDockRectangle(0,0,Size.x,Size.y);