Element.x, Element.y – Adobe Extending Flash Professional CS5 User Manual
Page 220
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
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
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