Bottomright (Rectangle.bottomright Property); Clone (Rectangle.clone Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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
properties.
y
Availability: ActionScript 1.0; Flash Player 8
Example
The following example sets the Rectangle object's
property using the values of
bottomRight
the Point object. Notice that
and
are changed.
rect.width
rect.height
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
,
,
, and
x
y
width
height
properties as the original Rectangle object.
Availability: ActionScript 1.0; Flash Player 8
1034
ActionScript classes

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF