right (Rectangle.right property)
public right : Number
The sum of the
and
properties.
x
width
Availability: ActionScript 1.0; Flash Player 8
Example
The following example creates a Rectangle object and changes its
property from 15 to
right
30. Notice that
also changes.
rect.width
import flash.geom.Rectangle;
var rect:Rectangle = new Rectangle(5, 5, 10, 10);
trace(rect.width); // 10
trace(rect.right); // 15
rect.right = 30;
trace(rect.width); // 25
trace(rect.right); // 30
See also
,
x (Rectangle.x property)
width (Rectangle.width property)
setEmpty (Rectangle.setEmpty method)
public setEmpty() : Void
Sets all of the Rectangle object's properties to 0. A Rectangle object is empty if its width or
height is less than or equal to 0.
This method sets the values of the
,
,
, and
properties to 0.
x
y
width
height
Availability: ActionScript 1.0; Flash Player 8
Example
The following example creates a non-empty Rectangle object and makes it empty.
import flash.geom.Rectangle;
1048
ActionScript classes
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?