User Guide
828 Chapter 6: Components Dictionary
Description
Property (read-only); a number indicating the width of the object, in pixels. To change the width,
call
UIObject.setSize().
Example
The following example makes the check box wider:
myCheckbox.setSize(myCheckbox.width + 10, myCheckbox.height);
UIObject.x
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
componentInstance.x
Description
Property (read-only); a number indicating the left edge of the object, in pixels. To set this
property, call
UIObject.move().
Example
The following example moves the check box 10 pixels to the right:
myCheckbox.move(myCheckbox.x + 10, myCheckbox.y);
UIObject.y
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX 2004.
Usage
componentInstance.y
Description
Property (read-only); a number indicating the top edge of the object, in pixels. To set this
property, call
UIObject.move().
Example
The following example moves the check box down 10 pixels:
myCheckbox.move(myCheckbox.x, myCheckbox.y + 10);