Hi! I sometimes use the Dictionary class. But frankly, not so often. Still I think that it’s probably a powerful class, so I’d like to ask you all how you usually use it.
For example, I recently used it to assign a value (that I don’t want to be the same as label) to some checkBox:
checksDict = new Dictionary()
//checks is an array of checkboxes
checks.forEach(function(check,index){
check.addEventListener(MouseEvent.CLICK,click);
checksDict[check] = index + 1;
});
I can then access the value of each check like this:
trace(checksDict[the-checkbox])
( note: maybe is this a poll? I never used the poll option, I don’t know)
So, I’d really like to have a lot of answers here, just to share ideas! Come on!