document.crop()

Availability

Flash 8.

Usage

document.crop()

Parameters

None.

Returns

A Boolean value: true if successful; false otherwise.

Description

Method; uses the top selected drawing object to crop all selected drawing objects underneath it. This method returns false if there are no drawing objects selected or if any of the selected items are not drawing objects.

Example

The following example crops the currently selected objects:

fl.getDocumentDOM().crop();