03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Method summary<br />

Modifiers Signature Description<br />

1046 <strong>ActionScript</strong> classes<br />

clone() : Rectangle Returns a new Rectangle object with the same values<br />

for the x, y, width, <strong>and</strong> height properties as the<br />

original Rectangle object.<br />

contains(x:Number,<br />

y:Number) : Boolean<br />

containsPoint(pt:Poi<br />

nt) : Boolean<br />

containsRectangle(re<br />

ct:Rectangle) :<br />

Boolean<br />

equals(toCompare:Obj<br />

ect) : Boolean<br />

inflate(dx:Number,<br />

dy:Number) : Void<br />

Determines whether the specified point is contained<br />

within the rectangular region defined by this Rectangle<br />

object.<br />

Determines whether the specified point is contained<br />

within the rectangular region defined by this Rectangle<br />

object.<br />

Determines whether the Rectangle object specified by<br />

the rect parameter is contained within this Rectangle<br />

object.<br />

Determines whether the object specified in the<br />

toCompare parameter is equal to this Rectangle<br />

object.<br />

Increases the size of the Rectangle object by the<br />

specified amounts.<br />

inflatePoint(pt:Poin Increases the size of the Rectangle object.<br />

t) : Void<br />

intersection(toInter<br />

sect:Rectangle) :<br />

Rectangle<br />

intersects(toInterse<br />

ct:Rectangle) :<br />

Boolean<br />

If the Rectangle object specified in the toIntersect<br />

parameter intersects with this Rectangle object, the<br />

intersection() method returns the area of<br />

intersection as a Rectangle object.<br />

Determines whether the object specified in the<br />

toIntersect parameter intersects with this Rectangle<br />

object.<br />

isEmpty() : Boolean Determines whether or not this Rectangle object is<br />

empty.<br />

offset(dx:Number,<br />

dy:Number) : Void<br />

offsetPoint(pt:Point<br />

) : Void<br />

Adjusts the location of the Rectangle object, as<br />

determined by its top-left corner, by the specified<br />

amounts.<br />

Adjusts the location of the Rectangle object using a<br />

Point object as a parameter.<br />

setEmpty() : Void Sets all of the Rectangle object's properties to 0.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!