beautypg.com

Document.union(), Document.unlockallelements() – Adobe Extending Flash Professional CS4 User Manual

Page 192

background image

170

EXTENDING FLASH CS4 PROFESSIONAL

Document object

document.union()

Availability
Flash 8.

Usage

document.union()

Parameters
None.

Returns
A Boolean value:

true

if successful;

false

otherwise.

Description
Method; combines all selected shapes into a drawing object.

Example
The following example combines all selected shapes into a drawing object:

fl.getDocumentDOM().union();

See also

document.crop()

,

document.deleteEnvelope()

,

document.intersect()

,

document.punch()

,

shape.isDrawingObject

document.unlockAllElements()

Availability
Flash MX 2004.

Usage

document.unlockAllElements()

Parameters
None.

Returns
Nothing.

Description
Method; unlocks all locked elements on the currently selected frame.

Example
The following example unlocks all locked objects on the current frame: