Accessible XMLList

I’m wondering what the most efficient way of making an XMLList available to anything that needs it. Basically, I load images into two movie clips, fade out the one on top, move down one depth, load a new image and the process repeats…the problem is that I’m only able to do the first two images as I’m not sure of how to access the XMLList to change the image.

Once I get that I believe I’ll be able to get the rest. Do I have to create a getter function? If so, how would I do that? Here’s what I have for the xml loading so far.

var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("../banner_images.xml"));
//LoadXML function
function LoadXML(evt:Event):void{
    var xmlData:XML = new XML(evt.target.data);
    ParseImgs(xmlData);
}

function ParseImgs(imgInput:XML):void{
    var imgAtts:XMLList = imgInput.img.attribute("src");
    //trace is fine unless I'm trying to access this information
    //outside this function.
    trace(imgAtts[0]);
}