Adobe Extending Flash Professional CS5 Manuale Utente Pagina 220

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 219
198
EXTENDING FLASH PROFESSIONAL
Element object
Last updated 5/2/2011
Do not use this property to resize a text field. Instead, select the text field and use document.setTextRectangle().
Using this property with a text field scales the text.
Example
The following example sets the width of the specified element to 100:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].width= 100;
element.x
Availability
Flash CS3 Professional.
Usage
element.x
Description
Property; a float value that specifies the x value of the selected element’s registration point.
Example
The following example sets the value of the specified element’s registration point to 100, 200:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].x= 100;
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].y= 200;
See also
element.y
element.y
Availability
Flash CS3 Professional.
Usage
element.y
Description
Property; a float value that specifies the y value of the selected element’s registration point.
Example
See element.x
Vedere la pagina 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 564 565

Commenti su questo manuale

Nessun commento