# Integrate XML in the photogallery script

**URL:** https://forum.kirupa.com/t/integrate-xml-in-the-photogallery-script/230318
**Category:** flash
**Created:** [June 25, 2007, 11:04am UTC](https://forum.kirupa.com/t/integrate-xml-in-the-photogallery-script/230318 "2007-06-25T11:04:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ero\_sennin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ero_sennin/32/3747_2.png) [@ero\_sennin](https://forum.kirupa.com/u/ero_sennin)
#### Post date: [June 25, 2007, 11:04am UTC](https://forum.kirupa.com/t/integrate-xml-in-the-photogallery-script/230318/1 "2007-06-25T11:04:03Z")

</div>

Hey I’m currently playing around with the [http://www.kirupa.com/developer/mx/photogallery.htm](http://www.kirupa.com/developer/mx/photogallery.htm) tutorial wich i think is great. Right now i’m modifying it in my way and i would like some easier way for the script to load the images.

The best way though i don’t know if this is possible would be if the script could automaticly load all the images in the folder

```auto
this.pathToPics = "animation/";

```

Instead of having to edit the .fla every time you have a new picture.

Another way I could do it is to have an XML file where the images are listed and then i can load the XML file in the pArray. Example:

```auto
this.pArray = _root.theimages;

```

How do I do this?
