# Get Dynamic XML Document

**URL:** <https://forum.kirupa.com/t/get-dynamic-xml-document/317906>\
**Category:** flash\
**Created:** [January 5, 2011, 7:04pm UTC](https://forum.kirupa.com/t/get-dynamic-xml-document/317906 "2011-01-05T19:04:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![treeleaf20](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@treeleaf20](https://forum.kirupa.com/u/treeleaf20)\
**Post date:** [January 5, 2011, 7:04pm UTC](https://forum.kirupa.com/t/get-dynamic-xml-document/317906/1 "2011-01-05T19:04:26Z")

</div>

All,  
I have the following code:

```auto

var flashmo_xml:XML = new XML();
var pic_loader:Loader = new Loader();
var xml_loader:URLLoader = new URLLoader();
xml_loader.load(new URLRequest("thumbnail_list_4.xml"));
xml_loader.addEventListener(Event.COMPLETE, create_thumbnail);

```

Bascially what I would like to happen is to have a PHP script create an XML file for the gallery to display. How can I update this to call a PHP script and then read the XML file that the PHP script creates?

Thanks in advance.
