Union (Rectangle.union Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

Returns
- A string that lists the value of each of the following properties of the Rectangle
String
object:
,
,
, and
x
y
width
Example
The following example concatenates a string representation of
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)
,
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
Returns
flash.geom.Rectangle
Example
The following example creates a Rectangle object out of the union of two others.
1052
ActionScript classes
.
height
,
y (Rectangle.y property)
- A Rectangle object to add to this Rectangle object.
- A new Rectangle object that is the union of the two rectangles.
with some helpful
rect_1
,
width (Rectangle.width

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