beautypg.com

Document.scaleselection() – Adobe Extending Flash Professional CS4 User Manual

Page 158

background image

136

EXTENDING FLASH CS4 PROFESSIONAL

Document object

Parameters
None.

Returns
A Boolean value of

true

if a version of the document is successfully saved to the Version Cue server;

false

otherwise.

Description
Method; if the file can be saved to the Version Cue server, displays a dialog box to let the user enter version comments,
saves a version of the specified document to the server, and logs any errors to the Output panel.

Note: If Flash can’t save the file because the server credentials have not been cached in the current application session, an
authentication failure error is displayed in the Output panel. If this error occurs, the user must use the File > Open dialog
box to open the Version Cue workspace with the correct credentials. Subsequent JavaScript API calls to this server will
then succeed.

Example

See document.canSaveAVersion().

See also

document.canSaveAVersion()

,

document.revertToLastVersion()

,

document.synchronizeWithHeadVersion()

document.scaleSelection()

Availability
Flash MX 2004.

Usage

document.scaleSelection(xScale, yScale [, whichCorner])

Parameters

xScale

A floating-point value that specifies the amount of x by which to scale.

yScale

A floating-point value that specifies the amount of y by which to scale.

whichCorner

A string value that specifies the edge about which the transformation occurs. If omitted, scaling occurs

about the transformation point. Acceptable values are:

"bottom left"

,

"bottom right"

,

"top right"

,

"top

left"

,

"top center"

,

"right center"

,

"bottom center"

, and

"left center"

. This parameter is optional.

Returns
Nothing.

Description
Method; scales the selection by a specified amount. This method is equivalent to using the Free Transform tool to scale
the object.