# Retreiving Array Data From XML

**URL:** <https://forum.kirupa.com/t/retreiving-array-data-from-xml/205447>\
**Category:** flash\
**Created:** [October 29, 2006, 8:45pm UTC](https://forum.kirupa.com/t/retreiving-array-data-from-xml/205447 "2006-10-29T20:45:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bholaday](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@bholaday](https://forum.kirupa.com/u/bholaday)\
**Post date:** [October 29, 2006, 8:45pm UTC](https://forum.kirupa.com/t/retreiving-array-data-from-xml/205447/1 "2006-10-29T20:45:55Z")

</div>

I have XML data that is loaded into a mulitdimensional array.

I would like to call that information later in my actionscript but it seems that the array has not populated before I want to use it.

I am using the onload() method of the XML object.

I can trace the contents of the array directly after it is loaded with my loop, but later in the code a trace returns “undefined”. My array is globally scoped.

What can I do?
