# Loading multiple xml in flash

**URL:** <https://forum.kirupa.com/t/loading-multiple-xml-in-flash/129084>\
**Category:** Uncategorized\
**Created:** [November 19, 2004, 10:04am UTC](https://forum.kirupa.com/t/loading-multiple-xml-in-flash/129084 "2004-11-19T10:04:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yourajax](https://avatars.discourse-cdn.com/v4/letter/y/ba9def/32.png) [@yourajax](https://forum.kirupa.com/u/yourajax)\
**Post date:** [November 19, 2004, 10:04am UTC](https://forum.kirupa.com/t/loading-multiple-xml-in-flash/129084/1 "2004-11-19T10:04:35Z")

</div>

hi All,

i want to load multiple xmls using single function like

function loadXML(xmlFileName,xmlObj) {  
XMLContent = new XML();  
XMLContent.load(xmlFileName);  
XMLContent.ignoreWhite = true;  
XMLContent.onLoad = function(success) {  
if (success) {  
runObj[xmlObj] = XMLDocToObject(XMLContent);  
}else{  
trace(“error loading xml”);  
}  
}

function loadXML(“myxml1.xml”,“content”)  
function loadXML(“myxml2.xml”,“display”)

now i want that the palyhead should jump to a particular frame label only when it completes loading ‘myxml2.xml’.

any suggestions !!!
