# Iterating an associative array

**URL:** <https://forum.kirupa.com/t/iterating-an-associative-array/233198>\
**Category:** Uncategorized\
**Created:** [July 21, 2007, 2:50am UTC](https://forum.kirupa.com/t/iterating-an-associative-array/233198 "2007-07-21T02:50:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sirisian](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@Sirisian](https://forum.kirupa.com/u/Sirisian)\
**Post date:** [July 21, 2007, 2:50am UTC](https://forum.kirupa.com/t/iterating-an-associative-array/233198/1 "2007-07-21T02:50:27Z")

</div>

From what I read on the AS3 documents the Object class should be used to create an associative array.

Now this might just be my C++ knowledge getting in the way of how flash works but how do I remove keys? Another question is how do I iterate an associative array? There are no iterators in flash, so I’m guessing it’s not possible.

My best idea is to just keep doing what I have now. I use an array that allows me to iterate and keep the associative array for look-up via an ID.

Is this what you guys do in this situation?
