beautypg.com

Document.match() – Adobe Extending Flash Professional CS5 User Manual

Page 141

background image

119

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

Description
Method; loads a cue point XML file. The format and DTD of the XML file is the same as the one imported and exported
by the Cue Points Property inspector. The return value is the same as the string serialized in the Cue Point property of
the object containing the instance of an FLVPlayback Component.

Example
The following example the cue points XML file located at C:\\testCuePoints.xml:

var cuePoints = fl.getDocumentDOM().LoadCuepointXML("c:\\testCuePoints.xml");

document.match()

Availability
Flash MX 2004.

Usage

document.match(bWidth, bHeight [, bUseDocumentBounds])

Parameters

bWidth

A Boolean value that, when set to

true

, causes the method to make the widths of the selected items the same.

bHeight

A Boolean value that, when set to

true

, causes the method to make the heights of the selected items the same.

bUseDocumentBounds

A Boolean value that, when set to

true

, causes the method to match the size of the objects to

the bounds of the document. Otherwise, the method uses the bounds of the largest object. The default is

false

. This

parameter is optional.

Returns
Nothing.

Description
Method; makes the size of the selected objects the same.

Example
The following example matches the width of the selected objects only:

fl.getDocumentDOM().match(true,false);

The following example matches the height only:

fl.getDocumentDOM().match(false,true);

The following example matches the width only to the bounds of the document:

fl.getDocumentDOM().match(true,false,true);

See also

document.getAlignToDocument()

,

document.setAlignToDocument()

This manual is related to the following products: