Packageorg.granite.util
Classpublic class VectorUtil

A workaround class for a bug with Flash 10+ Vector.<*> types: getDefinitionByName("__AS3__.vec::Vector.<*>") throws an error...



Public Properties
 PropertyDefined by
  unqualifiedVectorClass : Class
[static][read-only] The Vector.<*> class.
VectorUtil
Public Methods
 MethodDefined by
  
isUnqualifiedVectorClassName(name:String):Boolean
[static] Tells if the supplied class name denotes a unqualified Vector class name.
VectorUtil
  
newUnqualifiedVector(length:uint = 0, fixed:Boolean = false):Object
[static] Constructs a new Vector.<*> instance.
VectorUtil
Property detail
unqualifiedVectorClassproperty
unqualifiedVectorClass:Class  [read-only]

The Vector.<*> class. Will be null if the Flash VM isn't a 10+ VM.

Implementation
    public static function get unqualifiedVectorClass():Class
Method detail
isUnqualifiedVectorClassName()method
public static function isUnqualifiedVectorClassName(name:String):Boolean

Tells if the supplied class name denotes a unqualified Vector class name.

Parameters
name:String — teh class name to be test.

Returns
Booleantrue if the name parameter denotes a unqualified Vector class name, false otherwise.
newUnqualifiedVector()method 
public static function newUnqualifiedVector(length:uint = 0, fixed:Boolean = false):Object

Constructs a new Vector.<*> instance. Will be null if the current Flash VM isn't a 10+ VM.

Parameters
length:uint (default = 0) — the length of the vector.
 
fixed:Boolean (default = false) — Indicates whether the length property of the Vector can be changed.

Returns
Object — a new Vector.<*> instance, or null if the current Flash VM isn't a 10+ VM.