Flash 8.
document.crop()
None.
None.
Method; uses the top selected drawing object to crop all selected drawing objects underneath it. If no objects are selected, calling this method results in an error and the script breaks at that point.
The following example crops the currently selected objects:
fl.getDocumentDOM().crop();document.deleteEnvelope(), document.intersect(), document.punch(), document.union(), shape.isDrawingObject