# Passing array data

**URL:** https://forum.kirupa.com/t/passing-array-data/229691
**Category:** Uncategorized
**Created:** [June 19, 2007, 3:28pm UTC](https://forum.kirupa.com/t/passing-array-data/229691 "2007-06-19T15:28:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sceneshift](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@sceneshift](https://forum.kirupa.com/u/sceneshift)
#### Post date: [June 19, 2007, 3:28pm UTC](https://forum.kirupa.com/t/passing-array-data/229691/1 "2007-06-19T15:28:26Z")

</div>

Hello forums,

I am trying to figure out if there is a way to access an array via two different classes.

My main class (which extends sprite) is loading data from an xml file and putting it into a multi-dimensional array. With another class (in this instance called “test”) I want to be able to pull the data from that array for use within test. The test class also extends sprite.

I want to try and avoid passing this data as function arguments because there is a fair few dimensions to my array (10 in total.)

Thanks guys!
