User Guide
1032 ActionScript classes
containsRectangle(re
ct:Rectangle) :
Boolean
Determines whether the Rectangle object specified
by the rect parameter is contained within this
Rectangle object.
equals(toCompare:Obj
ect) : Boolean
Determines whether the object specified in the
toCompare parameter is equal to this Rectangle
object.
inflate(dx:Number,
dy:Number) : Void
Increases the size of the Rectangle object by the
specified amounts.
inflatePoint(pt:Poin
t) : Void
Increases the size of the Rectangle object.
intersection(toInter
sect:Rectangle) :
Rectangle
If the Rectangle object specified in the toIntersect
parameter intersects with this Rectangle object, the
intersection() method returns the area of
intersection as a Rectangle object.
intersects(toInterse
ct:Rectangle) :
Boolean
Determines whether the object specified in the
toIntersect parameter intersects with this
Rectangle object.
isEmpty() : Boolean Determines whether or not this Rectangle object is
empty.
offset(dx:Number,
dy:Number) : Void
Adjusts the location of the Rectangle object, as
determined by its top-left corner, by the specified
amounts.
offsetPoint(pt:Point
) : Void
Adjusts the location of the Rectangle object using a
Point object as a parameter.
setEmpty() : Void Sets all of the Rectangle object's properties to 0.
toString() : String Builds and returns a string that lists the horizontal and
vertical positions and the width and height of the
Rectangle object.
union(toUnion:Rectan
gle) : Rectangle
Adds two rectangles together to create a new
Rectangle object, by filling in the horizontal and
vertical space between the two rectangles.
Modifiers Signature Description