Flash implements a dictionary (that is, something like a HashMap) using two approaches. One approach is the flash.utils.Dictionary
class, and the other is a generic Object
. I'd like to check how many key:value
pairs are in the dictionary. In most cases I'd simply like to know it there are any key:value
pairs, that is, just check if it's empty.
The documentation hasn't been much help on this point. Is there a simple and clear way to do this? Failing that, is there an ugly, yet not too brittle way to do this?