# Dynamic Gallery Flash + XML

**URL:** <https://forum.kirupa.com/t/dynamic-gallery-flash-xml/226373>\
**Category:** flash\
**Created:** [May 20, 2007, 9:14pm UTC](https://forum.kirupa.com/t/dynamic-gallery-flash-xml/226373 "2007-05-20T21:14:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loyx](https://avatars.discourse-cdn.com/v4/letter/l/e274bd/32.png) [@Loyx](https://forum.kirupa.com/u/Loyx)\
**Post date:** [May 20, 2007, 9:14pm UTC](https://forum.kirupa.com/t/dynamic-gallery-flash-xml/226373/1 "2007-05-20T21:14:07Z")

</div>

Hello! First of all congratulations for you all who made this forum the best Flash Forum, as you can see this is my first post and I have a doubt about a Flash+XML gallery.

Presently I’m working in a simple website for a car seller. The offers section is composed of two main parts. First part is a clip (MC\_AllCars) where is dynamically loaded “thumbnail + description” for each car found in the XML file. I get this with a couple of “for” loops. With this loops I read and extract the data, and then I put it with attachMovie in a movieClip used as template. This part isn’t difficult to develop, but second is more difficult (for a newbie actionscripter like me).

The second part is other movierClip (MC\_CarDetails) working as another template. In this template would be loaded all the car details It would be like this:

![](http://img368.imageshack.us/img368/9295/gallerygt6.jpg)

I can’t see the way I could tell Flash to load an especific XML car node. I thinked about create one button dynamically for each thumb loaded in the “MC\_AllCars”, but… How can I asign each dynamic button to each car data for then load it into the MC\_CarDetails?

The cars are listed in the XML file in this way:

```auto

<?xml version="1.0" encoding="iso-8859-1"?>
<list>
   <car thumbnail="" description="">
    <info>
        <model></model>
        <doors></doors>
        <price></price>
        <colour></colour>
        <engine></engine>
        <extras></extras>
    </info>
    <images>
         <thumbs>
            <thumb></thumb>
            <thumb></thumb>            
            <thumb></thumb>
            <thumb></thumb>            
         </thumbs>
         <bigpics>
            <bigpic></bigpic>
            <bigpic></bigpic>            
            <bigpic></bigpic>
            <bigpic></bigpic>
         </bigpics>
    </images>            
   </car>
   <car thumbnail="" description="">
   .
   .
   .
   .
   .
</list>

```

I need your help. Any Idea?
