Document object
111
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.
Example
The following example expands the width of the current selection to double the original width
and shrinks the height to half:
flash.getDocumentDOM().scaleSelection(2.0, 0.5);
The following example flips the selection vertically:
fl.getDocumentDOM().scaleSelection(1, -1);
The following example flips the selection horizontally:
fl.getDocumentDOM().scaleSelection(-1, 1);
The following example scales the selection vertically by 1.9 from the top center:
fl.getDocumentDOM().scaleSelection(1, 1.90, 'top center');
document.screenOutline
Availability
Flash MX 2004.
Usage
document.screenOutline
Description
Read-only property; the current
ScreenOutline object
for the document. Before accessing the
object for the first time, make sure to use
document.allowScreens()
to determine whether the
property exists.
Example
The following example displays the array of values in the
screenOutline
property:
var myArray = new Array();
for(var i in fl.getDocumentDOM().screenOutline) {
Содержание FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY
Страница 1: ...Flash JavaScript Dictionary ...
Страница 16: ...16 Contents ...
Страница 40: ...40 Chapter 2 Top level functions ...
Страница 368: ...368 Chapter 3 Objects ...
Страница 386: ...386 Chapter 4 C Level Extensibility ...