# Adding another dimension to an Array

**URL:** https://forum.kirupa.com/t/adding-another-dimension-to-an-array/230967
**Category:** flash
**Created:** [June 30, 2007, 4:41pm UTC](https://forum.kirupa.com/t/adding-another-dimension-to-an-array/230967 "2007-06-30T16:41:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tazboy](https://avatars.discourse-cdn.com/v4/letter/t/3d9bf3/32.png) [@tazboy](https://forum.kirupa.com/u/tazboy)
#### Post date: [June 30, 2007, 4:41pm UTC](https://forum.kirupa.com/t/adding-another-dimension-to-an-array/230967/1 "2007-06-30T16:41:13Z")

</div>

I have some 2D arrays. I would like to add a 3rd dimension. How do I add this 3rd dimension? Thanks.

I don’t know if I’m stating this correctly but what I would like to do is have an array that holds a bunch of [thumb.jpg, number, bigpic.jpg]. This way all the values entries are related. So if I wanted to get any of these values I could use the same key value.

I don’t know if this makes sense. Plus, do I get the values of the 3rd dimension by using \*[2] in a for-loop? I know that \*[0] gets the 1st dimension and \*[1] gets the 2nd dimension.

Thanks in advance for any direction or help.
