I'm using XML to store certain default variables in a Flash game. It's easy enough to access those variables in my main class, since I can just instantiate and load an XML variable (in this case, defaultXML) and then do defaultScore = defaultXML.defaults.score.@value; or something similar. But then if I want to retrieve that data from within a child class, I have to use defaultScore = MovieClip( this.parent ).defaultXML.defaults.score.@value;. It gets even more confusing when I'm in a grandchild class, since I'm not even aware of a way to retrieve values from a grandparent.
What's a good way to retrieve values from an XML file in Actionscript? Should I keep doing what I'm doing, or is there an easier way?