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] );
}
protected var _arr:Array
protected var _dict:Dictionary
length:uint [read-only]
Return the length of the OrderedDictionary
Implementation
public function get length():uint
public function OrderedDictionary(weakKeys:Boolean = false)
OrderedDictionary Constructor
Parameters
| weakKeys:Boolean (default = false) |
flash_proxy override function callProperty(name:*, ... args):*
Parameters
Returns
flash_proxy override function getProperty(name:*):*
Proxy internal Dictionary contents for easy reference.
Parameters
Returns
flash_proxy override function setProperty(name:*, value:*):void
Proxy internal Dictionary contents for easy reference.
myOrdDict['fuc'] = me;
Parameters
Copyright © 2008-2012 jason m horwitz, Sekati LLC. All Rights Reserved.