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.
This object exposes the following properties for accessing Layer clip rectangles:
clip.bottom
clip.height
clip.left
clip.right
clip.top
clip.width
If you are developing scripts that only run in MSIE, there is a rather nice collection of filters that can provide these transitions very elegantly. It's a pity they aren't available in other browsers. But then layers and clip rectangles aren't supported in the same way in MSIE so at least there seems to be some alternative approach to creating visual effects on each platform.
See also: | Clip object, Rect object |
Prev | Home | Next |
Layer.captureEvents() | Up | Layer.clip.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. |