
118
EXTENDING FLASH CS4 PROFESSIONAL
Document object
Returns
A Boolean value: true if successful; false otherwise.
Description
Method; creates an intersection drawing object from all selected drawing objects. 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 creates an intersection drawing object from all selected drawing objects:
fl.getDocumentDOM().intersect();
See also
document.crop(), document.deleteEnvelope(), document.punch(), document.union(),
shape.isDrawingObject
document.library
Availability
Flash MX 2004.
Usage
document.library
Description
Read-only property; the library object for a document.
Example
The following example gets the library for the currently focused document:
var myCurrentLib = fl.getDocumentDOM().library;
Assuming the currently focused document is not fl.documents[1], the following example gets the library for a
nonfocused library or for a library you opened using File > Open as external library:
var externalLib = fl.documents[1].library;
document.libraryPath
Availability
Flash CS4 Professional.
Usage
document.libraryPath
Comentários a estes Manuais