# Dictionary class use cases

**URL:** <https://forum.kirupa.com/t/dictionary-class-use-cases/298859>\
**Category:** flash\
**Created:** [October 26, 2009, 2:03pm UTC](https://forum.kirupa.com/t/dictionary-class-use-cases/298859 "2009-10-26T14:03:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stratboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stratboy/32/3054_2.png) [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Post date:** [October 26, 2009, 2:03pm UTC](https://forum.kirupa.com/t/dictionary-class-use-cases/298859/1 "2009-10-26T14:03:11Z")

</div>

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:

```auto

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:

```auto
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!
