How to store vectors in array

Hi, i want to store 3 vectors in an array, how can i do this please help…

var ObjectArray1 : Vector3[];
var ObjectArray2 : Vector3[];
var ObjectArray3 : Vector3[];
var ArraySet = Array();
var i : int;
var x :int = 2;

function Start () 
{
      ObjectArray1 = new Vector3[5];//vector1
      ObjectArray2 = new Vector3[5];//vector2
      ObjectArray3 = new Vector3[5];//vector3
    
	ArraySet = new Array[3];//array set to store 3 vectors

	for(i=0;i<ObjectArray1.length;i++)
		x = x+2;
	}     
	
	for(i=0;i<ObjectArray2.length;i++)
	{
		ObjectArray2 *= Vector3(-x,0,0);*
  •  x = x+1;*
    
  • }*

  • for(i=0;i<ObjectArray3.length;i++)*

  • {*
    _ ObjectArray3 = Vector3(x,0,0);_
    * x = x-1;*
    * }*

}
should i use any for loop for storing 3 vector arrays to a single vector array??

Try changing these two lines

1…

var ArraySet = Array();

change to

var ArraySet : Vector3[];

2…

ArraySet = new Array[3];//array set to store 3 vectors

change to

ArraySet = new Vector3[3];//array set to store 3 vector3s

Was that the problem you were having?