beautypg.com

Document.smoothselection(), Document.sourcepath – Adobe Extending Flash Professional CS4 User Manual

Page 183

background image

161

EXTENDING FLASH CS4 PROFESSIONAL

Document object

whichEdge

A string that specifies the edge where the transformation occurs; if omitted, skew occurs at the

transformation point. Acceptable values are

"top center"

,

"right center"

,

"bottom center"

, and

"left

center"

. This parameter is optional.

Returns
Nothing.

Description
Method; skews the selection by a specified amount. The effect is the same as using the Free Transform tool to skew the
object.

Example
The following examples skew the selected object by 2.0 vertically and 1.5 horizontally. The second example transforms
the object at the top center edge:

fl.getDocumentDOM().skewSelection(2.0, 1.5);

fl.getDocumentDOM().skewSelection(2.0, 1.5, "top center");

document.smoothSelection()

Availability
Flash MX 2004.

Usage

document.smoothSelection()

Parameters
None.

Returns
Nothing.

Description
Method; smooths the curve of each selected fill outline or curved line. This method performs the same action as the
Smooth button in the Tools panel.

Example
The following example smooths the curve of the current selection:

fl.getDocumentDOM().smoothSelection();

document.sourcePath

Availability
Flash CS4 Professional.