Is it possible to add elements to a vector when it is declared, like you can for arrays?
e.g. for an array, you can just go
var myArray:Array = [2, 4, 1, 17, 16, 24]
which will leave you with an myArray filled with those numbers in one nice, tidy single line of code :).
However vectors seem to complain whenever you try to add anything to them when you instantiate them. As far as I know you have to do this instead
var myVector:Vector.<int> = new Vector.<int>
myVector.push(2)
myVector.push(4)
myVector.push(1)
myVector.push(17)
myVector.push(16)
myVector.push(24)
which of course is much more annoying.
(While typing this I realised you could just put all the pushes onto one line with myVector.push(2,4,1,17,16,24) making it much nicer, but the question still stands)