# Loading Multiple XML files in Flash

**URL:** <https://forum.kirupa.com/t/loading-multiple-xml-files-in-flash/280500>\
**Category:** flash\
**Created:** [January 28, 2009, 10:43am UTC](https://forum.kirupa.com/t/loading-multiple-xml-files-in-flash/280500 "2009-01-28T10:43:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PuffyMuffins](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@PuffyMuffins](https://forum.kirupa.com/u/PuffyMuffins)\
**Post date:** [January 28, 2009, 10:43am UTC](https://forum.kirupa.com/t/loading-multiple-xml-files-in-flash/280500/1 "2009-01-28T10:43:34Z")

</div>

I’m curently using:

```auto
var example:XML;
var exampleLoader:URLLoader = new URLLoader();
exampleLoader.addEventListener(Event.COMPLETE,XMLLoaded);
exampleLoader.load(new URLRequest("file.xml"));
function XMLLoaded(event):void 
{
     example = XML(event.target.data); 
     exampleLoader.removeEventListener(Event.COMPLETE, XMLLoaded;
}

```

Do I have to declare a new Loader and a new function for every XML file I load?  
Is there a way to load multiple XML files easily ?  
Thanks for your help! 🙂
