Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
VectorList and VectorCollection, similar to ArrayList and ArrayCollection. Feels weird that I need to convert Vectors to Arrays to use in Flex collections.
In case anyone is unaware, you can cast Vector.<WhateverTypeYouWant> as Vector.<*>. Works with the "as" and "is" keywords, as you can see below:
var strings:Vector.<String> = new <String>["One", "Two", "Three"];
trace(strings is Vector.<*>); //true
var generic:Vector.<> = strings as Vector.<>;
trace(strings) //One, Two, Three