An Array is a linear collection. A Hash is a random access collection
(lookup table) of name-value pairs.
Dictionary is a fancy Hash that can take an Object as a key, instead of
a String, and uses strict (===) equality for its lookups.
hash = new Object();
hash.foo = "bar";
array = new Array();
array.push("hello");
array.push("world");
dictionary = new Dictionary();
dictionary[hash] = array;
trace(hash.foo);
-- bar
trace(array)
-- hello, world
trace(dictionary[hash]);
-- hello, world
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders