Document.silent, Document.skewselection() – Adobe Extending Flash Professional CS4 User Manual

Page 182

Advertising
background image

160

EXTENDING FLASH CS4 PROFESSIONAL

Document object

Description
Method; sets the position of the current selection’s transformation point.

Example
The following example sets the transformation point of the current selection to 100, 200:

fl.getDocumentDOM().setTransformationPoint({x:100, y:200});

See also

document.getTransformationPoint()

,

element.setTransformationPoint()

document.silent

Availability
Flash MX 2004.

Usage

document.silent

Description
Property; a Boolean value that specifies whether the object is accessible. This is equivalent to the inverse logic of the
Make Movie Accessible setting in the Accessibility panel. That is, if

document

.

silent

is

true

, it is the same as the

Make Movie Accessible option being unchecked. If it is

false

, it is the same as the Make Movie Accessible option

being checked.

Example
The following example sets the

isSilent

variable to the value of the

silent

property:

var isSilent = fl.getDocumentDOM().silent;

The following example sets the

silent

property to

false

, indicating that the document is accessible:

fl.getDocumentDOM().silent = false;

document.skewSelection()

Availability
Flash MX 2004.

Usage

document.skewSelection(xSkew, ySkew [, whichEdge])

Parameters

xSkew

A floating-point number that specifies the amount of x by which to skew, measured in degrees.

ySkew

A floating-point number that specifies the amount of y by which to skew, measured in degrees.

Advertising