I relate to the new flash, and I am confused by what I have to use to store and retrieve key pairs. After some googling, I found various cartographic things to choose from:
1) Use the object:
var map:Object = new Object();
map["key"] = "value";
The problem is that some basic features seem to be missing. For example, to get the size of the map, I would have to write a utility method.
2) Use the dictionary
What does this standard library class provide over a simple object? It seems silly to exist if it is functionally identical to Object.
3) Download the regular HashMap / HashTable implementation from the Internet.
I used a lot of modern languages, and this is the first time I have not been able to find a library implementation of an associative array in 5 minutes. Therefore, I would like to receive recommendations from an experienced Flash developer.
Thank!
source
share