x (Rectangle.x property)
public x : Number
The x coordinate of the top-left corner of the rectangle. Changing the value of the x property
of a Rectangle object has no effect on the
The
property is equal to the
x
Availability: ActionScript 1.0; Flash Player 8
Example
The following example creates an empty Rectangle and sets its
is also changed.
rect.left
import flash.geom.Rectangle;
var rect:Rectangle = new Rectangle();
trace(rect.x); // 0
trace(rect.left); // 0
rect.x = 10;
trace(rect.x); // 10
trace(rect.left); // 10
See also
left (Rectangle.left property)
y (Rectangle.y property)
public y : Number
The y coordinate of the top-left corner of the rectangle. Changing the value of the
of a Rectangle object has no effect on the
The
property is equal to the
y
Availability: ActionScript 1.0; Flash Player 8
Example
The following example creates an empty Rectangle and sets its
is also changed.
rect.top
import flash.geom.Rectangle;
var rect:Rectangle = new Rectangle();
trace(rect.y); // 0
trace(rect.top); // 0
1054 ActionScript classes
,
, and
y
width
property.
left
,
, and
x
width
property.
top
properties.
height
property to 10. Notice that
x
properties.
height
property to 10. Notice that
y
property
y
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?