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:
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:
<?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?