# Accessing vars from other classes

**URL:** <https://forum.kirupa.com/t/accessing-vars-from-other-classes/263323>\
**Category:** Uncategorized\
**Created:** [June 14, 2008, 2:05pm UTC](https://forum.kirupa.com/t/accessing-vars-from-other-classes/263323 "2008-06-14T14:05:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ineedsleep](https://avatars.discourse-cdn.com/v4/letter/i/e5b9ba/32.png) [@Ineedsleep](https://forum.kirupa.com/u/Ineedsleep)\
**Post date:** [June 14, 2008, 2:05pm UTC](https://forum.kirupa.com/t/accessing-vars-from-other-classes/263323/1 "2008-06-14T14:05:37Z")

</div>

I have a class called loadXml which loads xml and sorts it into an array called galleryArray in a function called xmlintoarray I have another class called nav where I would like to use the data in galleryArray. could someone either tell me what this technique is called or even the syntax of how to do this. I am new to OOP but I know a little about flash.

Any help would be very welcome as I have been racking my brain for hours!!

Thank you in advance
