# How to use a single swf to load any number of different galleries from the same xml?

**URL:** https://forum.kirupa.com/t/how-to-use-a-single-swf-to-load-any-number-of-different-galleries-from-the-same-xml/205238
**Category:** flash
**Created:** [October 27, 2006, 10:42am UTC](https://forum.kirupa.com/t/how-to-use-a-single-swf-to-load-any-number-of-different-galleries-from-the-same-xml/205238 "2006-10-27T10:42:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![fr\_ode](https://avatars.discourse-cdn.com/v4/letter/f/9d8465/32.png) [@fr\_ode](https://forum.kirupa.com/u/fr_ode)
#### Post date: [October 27, 2006, 10:42am UTC](https://forum.kirupa.com/t/how-to-use-a-single-swf-to-load-any-number-of-different-galleries-from-the-same-xml/205238/1 "2006-10-27T10:42:19Z")

</div>

[FONT=Verdana][SIZE=2]🏒

I’m tryin to pull together a website to display my photographic work. While creating the gallery, I came across a problem which I haven’t been able to find any dynamic solution for:  
[/SIZE][/FONT][FONT=Verdana][SIZE=2][COLOR=Black] **- How can I use a single swf to load any number of different galleries from the same xml?** [/COLOR][/SIZE][/FONT][FONT=Verdana][SIZE=2]

When working with html/php/mysql I always make a file (art.php) and use it to load different data into with “id”.

Example: [/SIZE][/FONT][FONT=Verdana][SIZE=2][COLOR=Red]_[COLOR=Black]index.php?page=art&id=61839012[/COLOR]_  
[COLOR=Black]This displays index.php, containing art.php, containing the data in the database filed under id [/COLOR][/COLOR][/SIZE][/FONT][FONT=Verdana][SIZE=2][COLOR=Black]61839012.

**Is there a similar way of using flash/xml?**

Any help will be much apreciated :rambo:

ps: My xml will be sorted like this:  
[/COLOR][/SIZE][/FONT][FONT=Verdana][SIZE=2]

```auto

<gallery name="portraits">
    <pics>
        <item>
            <image>img/01.jpg</image>        
        </item>
        <item>
            <image>img/02.jpg</image>        
        </item>
    </pics>
</gallery>
<gallery name="people">
    <pics>
        <item>
            <image>img/01.jpg</image>        
        </item>
        <item>
            <image>img/02.jpg</image>        
        </item>
    </pics>
</gallery>
<gallery name="landscape">
    <pics>
        <item>
            <image>img/01.jpg</image>        
        </item>
        <item>
            <image>img/02.jpg</image>        
        </item>
    </pics>
</gallery>

```

[/SIZE][/FONT][FONT=Verdana][SIZE=2][COLOR=Black]  
[/COLOR][/SIZE][/FONT]
