mApplication.captureScreen()

Availability

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

Macintosh: Not Yet Available

Usage

mApplication.captureScreen(left:Number, top:Number, right:Number, bottom:Number, target:Object) : Void

Parameters

left - Left edge of the screen area to be captured.

top - Top edge of the screen area to be captured.

right - Right edge of the screen area to be captured.

bottom - Bottom edge of the screen area to be captured.

target - Path to a movie clip. This movie clip will be replaced by the captured image.

Returns

Nothing.

Description

Method; Captures a rectangular area of the screen and loads it into a movie clip.

Example

The following example captures the whole screen.

var screenSize = mSystem.getScreenSize();
mApplication.captureScreen(0,0,screenSize.x,screenSize.y,_root.capture);

See Also

mApplication.captureScreenToJPG()

Code Examples

mProjector Class Basics -- mApplication