Adobe Extending Flash Professional CS5 Manuale Utente Pagina 365

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 364
343
EXTENDING FLASH PROFESSIONAL
Matrix object
Last updated 5/2/2011
Example
See the matrix.b example.
matrix.d
Availability
Flash MX 2004.
Usage
matrix.d
Description
Property; a floating-point value that specifies the (1,1) element in the matrix. This value represents the scale factor of
the object’s y-axis.
Example
See the matrix.a example.
matrix.tx
Availability
Flash MX 2004.
Usage
matrix.tx
Description
Property; a floating-point value that specifies the x-axis location of a symbol’s registration point (also origin point or
zero point) or the center of a shape. It defines the x translation of the transformation.
You can move an object by setting the matrix.tx and matrix.ty properties (see matrix.ty).
Example
In the following example, setting tx and ty to 0 moves the registration point of the object to point 0,0 in the document:
var mat = fl.getDocumentDOM().selection[0].matrix;
mat.tx = 0;
mat.ty = 0;
fl.getDocumentDOM().selection[0].matrix = mat;
matrix.ty
Availability
Flash MX 2004.
Vedere la pagina 364
1 2 ... 360 361 362 363 364 365 366 367 368 369 370 ... 564 565

Commenti su questo manuale

Nessun commento