beautypg.com

Document.punch(), Document.removeallfilters() – Adobe Extending Flash Professional CS4 User Manual

Page 148

background image

126

EXTENDING FLASH CS4 PROFESSIONAL

Document object

document.punch()

Availability
Flash 8.

Usage

document.punch()

Parameters
None.

Returns
A Boolean value:

true

if successful;

false

otherwise.

Description
Method; uses the top selected drawing object to punch through 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 punches through drawing objects underneath the selected drawing object:

fl.getDocumentDOM().punch();

See also

document.crop()

,

document.deleteEnvelope()

,

document.intersect()

,

document.union()

,

shape.isDrawingObject

document.removeAllFilters()

Availability
Flash 8.

Usage

document.removeAllFilters()

Parameters
None.

Returns
Nothing.

Description
Method; removes all filters from the selected object(s).

Example
The following example removes all filters from the selected object(s):