# Dictionary

**URL:** <https://forum.kirupa.com/t/dictionary/298465>\
**Category:** flash\
**Created:** [October 19, 2009, 6:16pm UTC](https://forum.kirupa.com/t/dictionary/298465 "2009-10-19T18:16:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![werehunt](https://avatars.discourse-cdn.com/v4/letter/w/b782af/32.png) [@werehunt](https://forum.kirupa.com/u/werehunt)\
**Post date:** [October 19, 2009, 6:16pm UTC](https://forum.kirupa.com/t/dictionary/298465/1 "2009-10-19T18:16:57Z")

</div>

i need to store 5 buttons in a i guess dictionary so i can access them later.  
if i store them in an array then i will have to remember which is where so i guess dictionary is more intuitive, but i dont get this:

private var \_btnDict:Dictionary = new Dictionary();  
\_btnDict[up\_mc] = { name:“up” };  
\_btnDict[down\_mc] = { name:“down” };  
\_btnDict[prev\_mc] = { name:“prev” };  
\_btnDict[next\_mc] = { name:“next” };  
\_btnDict[close\_mc] = { name:“close” };

i dont even need this name property, cause i will access each one of them by saying:  
\_btnDict[up\_mc] for example.  
so can i write this without this name property?
