Adobe Extending Flash Professional CS4 Manuale Utente Pagina 219

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 218
197
EXTENDING FLASH CS4 PROFESSIONAL
Element object
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.skewX
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
document.setSelectionBounds() or document.moveSelectionBy() 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);
See the element.elementType example.
Vedere la pagina 218
1 2 ... 214 215 216 217 218 219 220 221 222 223 224 ... 559 560

Commenti su questo manuale

Nessun commento