MACROMEDIA FLASH 8-EXTENDING FLASH Manual page 140

Extending flash
Table of Contents

Advertisement

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
to determine whether
document.allowScreens()
the property exists.
Example
The following example displays the array of values in the
property:
screenOutline
var myArray = new Array();
for(var i in fl.getDocumentDOM().screenOutline) {
myArray.push(" "+i+" : "+fl.getDocumentDOM().screenOutline[i]) ;
}
fl.trace("Here is the property dump for screenOutline: "+myArray);
140
Objects

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents