EasyManua.ls Logo

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

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Related product manuals