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)


Flash CS3