Packageorg.osmf.smpte.tt.utilities
Classpublic class VectorUtils
InheritanceVectorUtils Inheritance Object



Public Methods
 MethodDefined By
  
removeItem(vector:*, item:*):uint
[static] Remove an item from a vector
VectorUtils
  
sortOn(vector:*, fieldName:Object, options:Object = null):Array
[static] Converts vector to an array and sorts it by a certain fieldName, options for more info
VectorUtils
  
toArray(vector:*):Array
[static] Converts vector to an array
VectorUtils
Method Detail
removeItem()method
public static function removeItem(vector:*, item:*):uint

Remove an item from a vector

Parameters

vector:* — the source vector
 
item:* — a string that identifies a field to be used as the sort value

Returns
uint
sortOn()method 
public static function sortOn(vector:*, fieldName:Object, options:Object = null):Array

Converts vector to an array and sorts it by a certain fieldName, options for more info

Parameters

vector:* — the source vector
 
fieldName:Object — a string that identifies a field to be used as the sort value
 
options:Object (default = null) — one or more numbers or names of defined constants

Returns
Array

See also

Array.sortOn
toArray()method 
public static function toArray(vector:*):Array

Converts vector to an array

Parameters

vector:* — vector to be converted

Returns
Array — Array converted array