3d Script Reference

Main Page  |  Script DemosTest Page

3d Object Methods
make3d(button,"top border color","bottom border color","edge color")

The make3d() method creates a 3d effect for a layer.

button a boolean value,if true,makes the layer behave like a button (clickable).
top border,bottom border and edge color values,allows the use of different colors.
All parameters are optional and can be set to null and bypassed.
Returns the calling layer.

Note: The effect is made by inserting another layer beneath the layer.
A slot must be available below the layer to avoid over lapping.

show3d(true/false,true/false) Hides/shows the 3d effect of a layer.
The second parameter sets weather the layer itself is included(default is false).
Returns the calling layer.
reset3d() Resets the 3d effect after the main layer has been altered in some way.
Returns the calling layer.
remove3dLip("edge") Removes the right and bottom 3d lip.
This can be used to prevent scrollbars from appearing when a layer is positioned on the edge of a window.
edge is the edge to be removed,the value can be "right","bottom" or "both".
Returns the calling layer.
buttonUp()
buttonDown()
These methods are call automatically when a 3d object is a button.
They can also be run via scripting to press a button.
Returns the calling layer.
3d Object Properties
layerObject.is3dButton.....if true,makes a 3d object "clickable".
layerObject.has3d.....returns true if a layer has a 3d effect applied to it.
layerObject.isButtonDown.....returns true if a button is currently pressed down.