Element.skewy, Element.top – Adobe Extending Flash Professional CS5 User Manual
Page 218
196
EXTENDING FLASH PROFESSIONAL
Element object
Last updated 5/2/2011
element.skewY
Availability
Flash CS3 Professional.
Usage
element.skewY
Description
Property; a float value between -180 and 180 that specifies the y skew value of symbols, drawing objects, and primitive
rectangles and ovals.
Example
The following example sets the y skew value of the current selection to 10:
var element = fl.getDocumentDOM().selection[0];
element.skewY = 10;
See also
document.setTransformationPoint()
,
element.top
Availability
Flash MX 2004.
Usage
element.top
Description
Read-only property; top side of the element. The value of
element.top
is relative to the upper left of the Stage for
elements that are in a scene and is relative to the symbol’s registration point if the element is stored within a symbol.
Use
or
to set this property.
Example
The following example shows how the value of this property changes when an element is moved:
// Select an element on the Stage and then run this script.
var sel = fl.getDocumentDOM().selection[0];
fl.trace("Top (before) = " + sel.top);
fl.getDocumentDOM().moveSelectionBy({x:0, y:100});
fl.trace("Top (after) = " + sel.top);
example.