1052 ActionScript classes
Returns
String
- A string that lists the value of each of the following properties of the Rectangle
object:
x
,
y
,
width
, and
height
.
Example
The following example concatenates a string representation of
rect_1
with some helpful
debugging text.
import flash.geom.Rectangle;
var rect_1:Rectangle = new Rectangle(0, 0, 50, 100);
trace("Rectangle 1 : " + rect_1.toString()); // Rectangle 1 : (x=0, y=0,
w=50, h=100)
See also
x (Rectangle.x property)
,
y (Rectangle.y property)
,
width (Rectangle.width
property)
,
height (Rectangle.height property)
union (Rectangle.union method)
public union(toUnion:Rectangle) : Rectangle
Adds two rectangles together to create a new Rectangle object, by filling in the horizontal and
vertical space between the two rectangles.
Availability:
ActionScript 1.0; Flash Player 8
Parameters
toUnion
:flash.geom.Rectangle
- A Rectangle object to add to this Rectangle object.
Returns
flash.geom.Rectangle
- A new Rectangle object that is the union of the two rectangles.
Example
The following example creates a Rectangle object out of the union of two others.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...