EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Union (Rectangle.union 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...
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.

Table of Contents

Related product manuals