beautypg.com

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

Page 182

background image

160

EXTENDING FLASH PROFESSIONAL

Document object

Last updated 5/2/2011

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.

Usage

document.sourcePath

Description
Property; a string that contains a list of items in the document’s ActionScript 3.0 Source path, which specifies the
location of ActionScript class files. Items in the string are delimited by semi-colons. In the authoring tool, the items
are specified by choosing File > Publish Settings and then choosing ActionScript 3.0 Script Settings on the Flash tab.

Example
The following example adds the ./Class files folder to the document’s Source path:

This manual is related to the following products: