# Am I just plain dumb or are dictionaires a pain

**URL:** <https://forum.kirupa.com/t/am-i-just-plain-dumb-or-are-dictionaires-a-pain/321751>\
**Category:** flash\
**Created:** [April 29, 2011, 5:07pm UTC](https://forum.kirupa.com/t/am-i-just-plain-dumb-or-are-dictionaires-a-pain/321751 "2011-04-29T17:07:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [April 29, 2011, 5:07pm UTC](https://forum.kirupa.com/t/am-i-just-plain-dumb-or-are-dictionaires-a-pain/321751/1 "2011-04-29T17:07:25Z")

</div>

I have tried this 7 different ways but I can’t get it to work. I am trying to nest 2 dictionaries and use objects as indexes. No matter which object I choose I get EVERYTHING in the main dictionary. The object indexing does not seem to be working.

Can someone help me with this? I have been struggling with this off and on for weeks!

```auto

public function handleMapping(fileMapRef:Object, choiceMapRef:Object)
  {
   choiceMap[choiceMapRef] = choiceMapRef.label;
   fileMap[fileMapRef.name] = choiceMap;
   //trace(choiceMap[choiceMapRef])
   
    for (var prop2:* in choiceMap)
    {
     trace(fileMap[fileMapRef.name][prop2]);
    }
   
  }

```
