# What kind of variable do I need?

**URL:** <https://forum.kirupa.com/t/what-kind-of-variable-do-i-need/82762>\
**Category:** flash\
**Created:** [March 13, 2005, 6:38am UTC](https://forum.kirupa.com/t/what-kind-of-variable-do-i-need/82762 "2005-03-13T06:38:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daleth](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daleth/32/1096_2.png) [@daleth](https://forum.kirupa.com/u/daleth)\
**Post date:** [March 13, 2005, 6:38am UTC](https://forum.kirupa.com/t/what-kind-of-variable-do-i-need/82762/1 "2005-03-13T06:38:41Z")

</div>

Hi all,  
I’m working on a little gallery design that loads several different galleries from an XML file. I’m very well practiced so far with the various coding for this task, but I do have a question regarding arrays and objects.

What I want is to store all the image paths in a nested array/object of some kind, so that I could (for instance) access an image via: gallery\*.image[j] . I considered using a multidimensional array but for some reason this just doesn’t make sense to me. If it wasn’t going to be totally dynamic, I would predefine 5 gallery arrays, but this is a limiting approach.

So, my question is, how can I create a nested array or object for this task? I know I’m missing something obvious, but I’m just not seeing it for some reason. Thanks for shedding some light!!!
