Does your class/file has the name myList ? Are you using the right Namespace (System.Collections.Generic)? Dont know, but the syntax looks right to me. Maybe post all your code
Sorry for not posting the whole script but it is kind of sloppy right now.
private var splinePoints = new List.<Vector2>();
edit:
splineLine is a VectorLine(), a class of the Asset Vectrosity. It makes up the spline. splinePoints, is a list of Vector2, which makes up the array passed into the spline, making up the spline.
var splineLine : VectorLine;
private var splinePoints = new List.<Vector2>();
function Start()
{
splineLine = VectorLine("Spline", new Vector2[segments], splineMaterial, 2.0, LineType.Continuous);
}
function createSpline()
{
///this method is called on a timer when mouse is down
///add a position, vector to the list splinePoints
splinePoints.Add(Camera.main.WorldToScreenPoint(splineNodePos));
//makeSpline
splineLine.MakeSpline(splinePoints.ToArray());
}