8/13/2011 7:27:53 AM
Title:
vector in action script3.0
when and why i use
such a code
var v:Vector.<string>= new Vector.<string>();
and what is the difference between vector and array
as i know array we use it when we handling with a large amount of data
but i don't know vector
Davis
Points: 780
Posts:0
8/14/2011 6:15:08 AM
your above code means that only string type of data can be stored in the vector. If you will try to store any other type it will through error. Vector is used where strict type of data has to be stored in the list. Array can be used to store data of any type in same array.