# Retrieving the keys in an Associative Array

**URL:** <https://forum.kirupa.com/t/retrieving-the-keys-in-an-associative-array/88694>\
**Category:** flash\
**Created:** [May 1, 2005, 10:12pm UTC](https://forum.kirupa.com/t/retrieving-the-keys-in-an-associative-array/88694 "2005-05-01T22:12:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![educasia](https://avatars.discourse-cdn.com/v4/letter/e/e19adc/32.png) [@educasia](https://forum.kirupa.com/u/educasia)\
**Post date:** [May 1, 2005, 10:12pm UTC](https://forum.kirupa.com/t/retrieving-the-keys-in-an-associative-array/88694/1 "2005-05-01T22:12:15Z")

</div>

Hi,

If I have an associative array, say,

cars = {make: “Honda”, year: “1997”, model: “civic”}

is there an actionscript function to retrieve just the keys, (namely make, year, and model) ? If not, how could it be efficiently done?

Thanks.

Ben
