DynLayer Extensions
June 23 Changes:
- All of these extensions now use prototypes, so you never have to explicitly define them for each DynLayer, just add the file and they will be available to all DynLayers.
- Added getRelativeX(),Y() and getContentWidth(),Height() methods to the common extensions.
- he move to prototypes in the DynLayer has an effect on Objects that encapsulate the DynLayer.
- How To Extend The DynLayer
- will show the different ways to make your own extensions onto the DynLayer by making your own methods, add-on objects, and how to incorporate the DynLayer into other objects that you build.
Common Extensions
- This is a set of small, but very useful and commonly needed extensions.
- load() - loading external files
- setbg() - sets a new background color
- img() - changes an image in the layer
- getRelativeX() - returns the actual left location of the layer when positioned relatively
- getRelativeY() - returns the actual top location of the layer when positioned relatively
- getContentWidth() - returns the width of the contents in the layer when the width is not defined
- getContentHeight() - returns the height of the contents in the layer when the height is not defined
Wipe Methods
- these animated versions of the clip methods that can be used for "curtain" effects
Glide Methods
- an alternative to the Slide Methods that provide a subtle acceleration effect for making very slick animations
The following lessons contain objects which are in fact extensions of the DynLayer:
copyright 1998 Dan Steinman