Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 220

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 564 565

Komentáře k této Příručce

Žádné komentáře