Layer.clip (Property)

An object that represents the clip region within a layer.


JavaScript - 1.2
Netscape - 4.0
Property/method value type:Rect object
JavaScript syntax:NmyLayer.clip

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:

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