Hello :) can you show your code ?
else try it : import mx.utils.Delegate ; class Test { function Test() { x = new XML() ; x.onLoad = Delegate.create(this, onLoad) ; // create a proxy between your instance and the xml object x.load("test.xml") ; } public var x:XML ; public function onLoad( success:Boolean ):Void { trace( "scope of your function : " + this) ; trace("xml : " + x ) ; // here use your Test methods ! } } The Delegate class of Adobe can be your solution ? In my opensource framework i use more powerful Delegate implementation and event model, you can read : - http://code.google.com/p/vegas/wiki/VegasTutorialsEvents_delegate - http://code.google.com/p/vegas/wiki/VegasTutorialsEvents - http://code.google.com/p/vegas/ My vegas.events.Delegate class is more complete ... but the Adobe class it's more easy to begin with the proxy model. EKA+ :) 2007/9/9, Lee Marshall <[EMAIL PROTECTED]>: > > I have just created a class 'ClassA' that loads an XML file.Within that > class I have a public function that navigates through the XML and populates > arrays with the XML content. > > I am now creating another class, which will be called 'ClassB' which I > plan to extend 'ClassA'. > > >From 'ClassB' I would like to reference the array variable to re-use > in the 'ClassB' class. I have tried tons of different ways all of which I > get undefined. > > Could anyone help? > > Cheers > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com