Document.library, Document.librarypath, For more information, see – Adobe Extending Flash Professional CS4 User Manual
Page 140
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.library
Availability
Flash MX 2004.
Usage
document.library
Description
Read-only property; the
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