beautypg.com

Document.deleteenvelope(), Document.deletepublishprofile() – Adobe Extending Flash Professional CS5 User Manual

Page 109

background image

87

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

document.deleteEnvelope()

Availability
Flash 8.

Usage

document.deleteEnvelope()

Parameters
None.

Returns
A Boolean value:

true

if successful;

false

otherwise.

Description
Method; deletes the envelope (bounding box that contains one or more objects) from the selected objects.

Example
The following example deletes the envelope from the selected objects:

fl.getDocumentDOM().deleteEnvelope();

See also

document.crop()

,

document.intersect()

,

document.punch()

,

document.union()

,

shape.isDrawingObject

document.deletePublishProfile()

Availability
Flash MX 2004.

Usage

document.deletePublishProfile()

Parameters
None.

Returns
An integer that is the index of the new current profile. If a new profile is not available, the method leaves the current
profile unchanged and returns its index.

Description
Method; deletes the currently active profile, if there is more than one. There must be at least one profile left.

Example
The following example deletes the currently active profile, if there is more than one, and displays the index of the new
currently active profile:

This manual is related to the following products: