Not to get confused with the word ‘Vector’(Class) with vector ( scalars and vectors), is basically a new class introduced in new version of flash player(version 10). This class is meant for accessing and manipulating a vector(a typed array), means it can handle a vector of strings, vector of integers, and so on- even you can include your own types also.
Vector is some kind of polarized array that is dense in nature( no gaps between the elements of the array), which increases the performance in iteration processes. It has both fixed and extend able length. So either you can fix the length, or you can extend it but when ever you extend all the extended elments are defined so as to complete the dense nature. All other methods are same as normal array methods and the declaration looks like the example given below.
-
var vctContianer:Vector.=new Vector.(true, 5);
