I want to iterate over the keys in a dictionary and I've looked at:
Efficient looping through AS3 dictionary
I am populating an dictionary using the following code:
arguments = new Dictionary();
for each(var entry:XML in bean.child("entry"))
{
var key:String = entry.@key.toString();
value = instantiate(entry.children()[0]);
arguments[key] = value;
}
the 'arguments' dictionary then gets passed to another method which attempts to iterate over the keys in that array:
for (var key:Object in arguments)
{
retval[key] = arguments[key.toString()];
}
No matter what I do with these loops, I cannot get the body of the second loop to execute.
I've verified with the debugger that 'arguments' contains the correct entries.