# Retrieving info from a dynamically created array

**URL:** https://forum.kirupa.com/t/retrieving-info-from-a-dynamically-created-array/268344
**Category:** flash
**Created:** [August 12, 2008, 8:03pm UTC](https://forum.kirupa.com/t/retrieving-info-from-a-dynamically-created-array/268344 "2008-08-12T20:03:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kidsonrids](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kidsonrids](https://forum.kirupa.com/u/kidsonrids)
#### Post date: [August 12, 2008, 8:03pm UTC](https://forum.kirupa.com/t/retrieving-info-from-a-dynamically-created-array/268344/1 "2008-08-12T20:03:36Z")

</div>

“oneColourArray” is an array that is filled with numbers from an xml file. I also have an array called “twoColourArray”. So I need a way to switch between the two.

oneColourArray[0][0] should equal “8”. Ive tried using toString(), Number, parseInt, but nothing is working. Please help

var myvar:String  
myvar = “one”

var myArrayInfo:Number  
[FONT=Tahoma]myArrayInfo[/FONT][FONT=Tahoma] = [(myvar + “ColourArray[0][0]”)]

trace [/FONT]FONT=Tahoma[/FONT]
