Ted - this should do what you're after: package { public class MyData { private var _myVarA:String; private var _myVarB:Number; private function loadXML(dfile:String, myValueA:String, myValueB:Number):void { _myVarA = myValueA; _myVarB = myValueB; urlLoader.load(new URLRequest(dfile)); urlLoader.addEventListener(Event.COMPLETE, parseXML); }
private function parseXML(e:Event):void { //Use _myVarA and _myVarB here. xmlFile:new XML(e.target.data); totalBars = xmlFile.children().length(); } } } Jason Merrill Bank of America Global Learning Learning & Performance Solutions Join the Bank of America Flash Platform Community and visit our Instructional Technology Design Blog (note: these are for Bank of America employees only) _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders