1034 ActionScript classes
bottomRight (Rectangle.bottomRight property)
public bottomRight : Point
The location of the Rectangle object's bottom-right corner, determined by the values of the
x
and
y
properties.
Availability:
ActionScript 1.0; Flash Player 8
Example
The following example sets the Rectangle object's
bottomRight
property using the values of
the Point object. Notice that
rect.width
and
rect.height
are changed.
import flash.geom.Rectangle;
import flash.geom.Point;
var rect:Rectangle = new Rectangle(1, 2, 4, 8);
trace(rect.bottom); // 10
trace(rect.right); // 5
trace(rect.height); // 8
trace(rect.width); // 4
var myBottomRight:Point = new Point(16, 32);
rect.bottomRight = myBottomRight;
trace(rect.bottom); // 32
trace(rect.right); // 16
trace(rect.height); // 30
trace(rect.width); // 15
See also
Point (flash.geom.Point)
clone (Rectangle.clone method)
public clone() : Rectangle
Returns a new Rectangle object with the same values for the
x
,
y
,
width
, and
height
properties as the original Rectangle object.
Availability:
ActionScript 1.0; Flash Player 8
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...