| Path Methods | |
|
slideTo(left,top,speed,"action",resolution adjust) This method is used to move a layer in a straight line or at an angle.
left and top set where the slide should end. | |
|
makePath("x","y","action")
|
This method is a manual way to make or add to a path.
x and y are strings of corresponding coordinates. |
|
runPath() |
Moves the layer along the path. Returns the calling layer. |
| reversePath("defer") |
Reverses the path*.
defer prevents the path from being run automatically. |
| stopPath(next function) |
Stops the layer from proceeding along the path. next function is a boolean value,if true,calls the layer's onpathend event handler. Returns the calling layer. |
| pathPoint(point,"coord") |
Returns and/or moves the layer to a point along a path.
point is a point along the path of a layer. |
| pathSegment(segment,"moveto") |
Returns and/or moves a layer to the start of a path segment.
segment is an integer specifying a segment. |
| Path Properties | |
|
layerObject.onpathend.....event handler which fires when a layer completes a path. layerObject.pathEndPoint.....sets/returns the last point of a layer's path. layerObject.pathStopPoint.....sets/returns the stopping point of a layer's path. layerObject.pathReversed.....returns true if a layer's path is reversed. layerObject.hasPath.....returns true if a layer has a path assigned to it. layerObject.pathRunning.....returns true if a layer is moving along its path. layerObject.pathIntervalSpeed.....sets/returns the interval speed of a layer's path. lastRunPathLayer.....varible set to the last layer that has run it's path. | |
|
* Note: When a path is reversed,the start becomes
the end and the end becomes the start. So if a segment is added,it would be added to the current end of the path. This would also apply to other modifications to the path. | |