# \[MX04\]Loading from XML files

**URL:** <https://forum.kirupa.com/t/mx04-loading-from-xml-files/211257>\
**Category:** flash\
**Created:** [December 29, 2006, 5:22am UTC](https://forum.kirupa.com/t/mx04-loading-from-xml-files/211257 "2006-12-29T05:22:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miao\_the\_cat](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@miao\_the\_cat](https://forum.kirupa.com/u/miao_the_cat)\
**Post date:** [December 29, 2006, 5:22am UTC](https://forum.kirupa.com/t/mx04-loading-from-xml-files/211257/1 "2006-12-29T05:22:15Z")

</div>

Hi,

I am doing up a photo gallery as a pet project using only actionscript. So far I have been successful in achieving the objectives that I want. However, moving forward, I intend to make the flash photo gallery easy to customise and want to add in a XML config file for flashh to reference.

Here is where I am facing some problems. I managed to get Flash to read the XML data w/o a problem. The catch is how can I know when the XML file is loaded before I render the other movie objects (which require the settings in the config file)?

eg.

file\_xml = new XML();  
//Load XML file  
XML.prototype.ignoreWhite = true;  
//Parse the XML data  
file\_xml.onLoad = ParseXML;  
file\_xml.load(“config.xml”);

//Actions requiring info from config file here

Is there a way for Flash to listen to when I can start using the config values?

Hope my query is not too complicated.
