Adobe Extending Flash Professional CS5 Manual de usuario Pagina 364

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 565
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 363
342
EXTENDING FLASH PROFESSIONAL
Matrix object
Last updated 5/2/2011
var mat = fl.getDocumentDOM().selection[0].matrix;
mat.a = 0.5;
mat.b = 0.8;
mat.c = 0.8*(-1);
mat.d = 0.5;
fl.getDocumentDOM().selection[0].matrix = mat;
You can set a = d = 1 and c = b = 0 to reset the object back to its original shape.
matrix.b
Availability
Flash MX 2004.
Usage
matrix.b
Description
Property; a floating-point value that specifies the (0,1) element in the matrix. This value represents the vertical skew
of a shape; it causes Flash to move the shape’s right edge along the vertical axis.
The matrix.b and matrix.c properties in a matrix represent skewing (see matrix.c).
Example
In the following example, you can set b and c to -1 and 0, respectively; these settings skew the object at a 45º vertical
angle:
var mat = fl.getDocumentDOM().selection[0].matrix;
mat.b = -1;
mat.c = 0;
fl.getDocumentDOM().selection[0].matrix = mat;
To skew the object back to its original shape, you can set b and c to 0.
See also the matrix.a example.
matrix.c
Availability
Flash MX 2004.
Usage
matrix.c
Description
Property; a floating-point value that specifies the (1,0) element in the matrix. This value causes Flash to skew the object
by moving its bottom edge along a horizontal axis.
The matrix.b and matrix.c properties in a matrix represent skewing.
Vista de pagina 363
1 2 ... 359 360 361 362 363 364 365 366 367 368 369 ... 564 565

Comentarios a estos manuales

Sin comentarios