beautypg.com

Document.currentpublishprofile, Document.currenttimeline – Adobe Extending Flash Professional CS5 User Manual

Page 107

background image

85

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

Returns
A Boolean value:

true

if successful;

false

otherwise.

Description
Method; uses the top selected drawing object to crop all selected drawing objects underneath it. 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 crops the currently selected objects:

fl.getDocumentDOM().crop();

See also

document.deleteEnvelope()

,

document.intersect()

,

document.punch()

,

document.union()

,

shape.isDrawingObject

document.currentPublishProfile

Availability
Flash MX 2004.

Usage

document.currentPublishProfile

Description
Property; a string that specifies the name of the active publish profile for the specified document.

Example
The following example adds a new publish profile with the default name and then displays the name of the profile in
the Output panel:

fl.getDocumentDOM().addNewPublishProfile();

fl.outputPanel.trace(fl.getDocumentDOM().currentPublishProfile);

The following example changes the selected publish profile to

"Default"

:

fl.getDocumentDOM().currentPublishProfile = "Default";

document.currentTimeline

Availability
Flash MX 2004.

Usage

document.currentTimeline

This manual is related to the following products: