Accessing vars from other classes

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