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