How do I initialize a Vector with a class that is stored in a variable?
function initVector(Type:Class) {
var vec:Vector.<Type> = new Vector.<Type>()
}
initVector(int) gives compiler errors:
1046: Type was not found or was not a compile-time constant: Type.
1120: Access of undefined property Type.
What is the correct way to achieve this?