Adobe Extending Flash Professional CS4 Manuale Utente Pagina 214

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 560
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 213
192
EXTENDING FLASH CS4 PROFESSIONAL
Element object
element.matrix
Availability
Flash MX 2004.
Usage
element.matrix
Description
Property; a Matrix object. A matrix has properties a, b, c, d, tx, and ty. The a, b, c, and d properties are floating-point
values; the
tx and ty properties are coordinates. See Matrix object.
Example
The following example moves the specified element by 10 pixels in x and 20 pixels in y:
var mat = fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].matrix;
mat.tx += 10;
mat.ty += 20;
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].matrix = mat;
element.name
Availability
Flash MX 2004.
Usage
element.name
Description
Property; a string that specifies the name of the element, normally referred to as the Instance name. If the value of
element.elementType is "shape", this property is ignored. See element.elementType.
Example
The following example sets the Instance name of the first element in Frame 1, top layer to "clip_mc":
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].name = "clip_mc";
See the element.elementType example.
element.removePersistentData()
Availability
Flash MX 2004.
Usage
element.removePersistentData(name)
Vedere la pagina 213
1 2 ... 209 210 211 212 213 214 215 216 217 218 219 ... 559 560

Commenti su questo manuale

Nessun commento