mWindow.setShape()

Availability

Windows: Not Applicable

Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector 1.2.1;

Usage

mWindow.setShape(filename:String) : Void

Parameters

filename - name of the TIF to be used as the window shape mask.

Returns

Nothing.

Description

Method; Sets the shape of the window as defined by the outline of the non-transparent region of the specified TIF file. An initial TIF shape must be specified in the "Shape" panel in the mProjector Mac compiler before this function to work. An mProjector window on the Mac is made up of two regions -- the Flash movie region and the TIF mask region. The Flash movie region is the area into which your Flash movie is played. By default the Flash region is the size of the Stage of the SWF and is located in the center of the window. The TIF mask region is area defined by the non-transparent region of a TIF minus the Flash movie region.

Example

This example sets the window shape to be hexagonal.

mWindow.setShape("hexagon.tif"); 

See Also

Windows: mWindow.enableAlphaMode(), mWindow.freezeShape(), , mWindow.setMaskRectangle() Mac: mWindow.setFlashSize(), mWindow.setShape(), mWindow.onMaskMouseUp(), mWindow.onMaskMouseDown()