1048 ActionScript classes
right (Rectangle.right property)
public right : Number
The sum of the
x
and
width
properties.
Availability:
ActionScript 1.0; Flash Player 8
Example
The following example creates a Rectangle object and changes its
right
property from 15 to
30. Notice that
rect.width
also changes.
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
x
,
y
,
width
, and
height
properties to 0.
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;
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...