Packagesekati.collections
Classpublic dynamic class OrderedDictionary
InheritanceOrderedDictionary Inheritance flash.utils.Proxy

OrderedDictionary provides a Dictionary like collection object which persists the order of entries similar to an Array.

This is accomplished by storing the value in an array and the key and array index of the value in a dictionary.

In this way you may reference by key or index - provided you do not use an uint as a key.

  var od : OrderedDictionary = new OrderedDictionary( );
  od['test0'] = "foo";
  od['test1'] = "bar";
  od.push( "test3", "doe");
  
  trace( od['test1'] );
  
  for (var i : int = 0; i < od.length; i++) { 
   trace( od[i] );
  }
  



Public Properties
 PropertyDefined by
  length : uint
[read-only] Return the length of the OrderedDictionary
OrderedDictionary
Protected Properties
 PropertyDefined by
  _arr : Array
OrderedDictionary
  _dict : Dictionary
OrderedDictionary
Public Methods
 MethodDefined by
  
OrderedDictionary(weakKeys:Boolean = false)
OrderedDictionary Constructor
OrderedDictionary
Protected Methods
 MethodDefined by
  
callProperty(name:*, ... args):*
OrderedDictionary
  
getProperty(name:*):*
Proxy internal Dictionary contents for easy reference.
OrderedDictionary
  
setProperty(name:*, value:*):void
Proxy internal Dictionary contents for easy reference.
OrderedDictionary
Property detail
_arrproperty
protected var _arr:Array
_dictproperty 
protected var _dict:Dictionary
lengthproperty 
length:uint  [read-only]

Return the length of the OrderedDictionary

Implementation
    public function get length():uint
Constructor detail
OrderedDictionary()constructor
public function OrderedDictionary(weakKeys:Boolean = false)

OrderedDictionary Constructor

Parameters
weakKeys:Boolean (default = false)
Method detail
callProperty()method
flash_proxy override function callProperty(name:*, ... args):*

Parameters
name:*
 
... args

Returns
*
getProperty()method 
flash_proxy override function getProperty(name:*):*

Proxy internal Dictionary contents for easy reference.

Parameters
name:*

Returns
*
setProperty()method 
flash_proxy override function setProperty(name:*, value:*):void

Proxy internal Dictionary contents for easy reference. myOrdDict['fuc'] = me;

Parameters
name:*
 
value:*