Adobe Extending Flash Professional CS5 Manuel d'utilisateur Page 220

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 565
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 219
1 2 ... 215 216 217 218 219 220 221 222 223 224 225 ... 564 565

Commentaires sur ces manuels

Pas de commentaire