X (Rectangle.x Property); Y (Rectangle.y Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF