Specifies a vector spline to be used as a path. The first point defines the path's starting point. This method can be used or modified only when the path is stopped.
Syntax
HTML <PARAM NAME="Shape" VALUE="Spline(npoints, [ x1, y1, x2, y2... ] )"> Scripting pathObj.Spline ( npoints, [ x1, y1, x2, y2... ] )
Parameters
- npoints
- Number of points to be used to define the spline.
- x1
- First x point for the spline.
- y1
- First y point for the spline.
- x2
- Second x point for the spline.
- y2
- Second y point for the spline.
Remarks
You need to specify four points for each curve in the spline. You can specify the array of x, y coordinates either as an array or as a comma-delimited string of numbers that will be passed as the coordinate set. The number of points in the spline and their spacing can have an effect on the path's speed. Having too many points too close together along the path can cause the path to seem as if it is slowing down when it traverses those points.
Example
Right-click inside the frame and select View Source to see the HTML code for the Spline method example.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.