beautypg.com

Document.library, Document.librarypath, For more information, see – Adobe Extending Flash Professional CS5 User Manual

Page 139

background image

117

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

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

This manual is related to the following products: