This object represents a clipping rectangle that the visible part of a display object is viewed through. This is most likely used with a layer object. The layer contents would be drawn off-screen and then that part which falls within the clipping rectangle would be displayed in the window.
This can be useful for performing wipes and making parts of a layer progressively visible within some kind of transition loop.
In the MSIE browser, these rectangular objects are manufactured as needed with the rect() constructor function.
These rectangles are not the same as you can create with the getBoundingClientRect() method, which applies to a TextRange object. That method creates TextRectangle which responds differently to the pixel rectangle we have here.
Prev | Home | Next |
ReadOnly | Up | Rect.bottom |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |