murphsy
October 16th, 2008, 11:48 AM
Hi there,
I've been puzzling with this for quite a bit. I went through a ton of xml+cs3 tutorials, and quite a few external images ones. I think I got them both nailed. The xml+cs3 tutorial on this website really shone a light on how this integration works.
However I want to have an xml that feeds a couple of nodes to an image loader. A horizontal image scroller to be exact.
So I know how to load an external image, through using an url and a movieclip. I know how to read a xml-file and how to filter it. But I can't get a grasp on how to read an xml-file and use the urls found there to load the images.
The xml file looks like this:
<gallery>
<foto id="1">
<loc>fotos/foto1.jpg</loc>
<thumb></thumb>
<desc></desc>
</foto>
<foto id="2">
<loc>fotos/foto2.jpg</loc>
<thumb></thumb>
<desc></desc>
</foto>
</gallery>
Loc being the location of the photo. (Thumb the thumbnail, desc the description - but this is for a later date)
How do I get my horizontal gallery to display foto 1, 2 and 3 next to eachother in boxes of 110x110px? It sounds so simple...
Thanks in advance
I've been puzzling with this for quite a bit. I went through a ton of xml+cs3 tutorials, and quite a few external images ones. I think I got them both nailed. The xml+cs3 tutorial on this website really shone a light on how this integration works.
However I want to have an xml that feeds a couple of nodes to an image loader. A horizontal image scroller to be exact.
So I know how to load an external image, through using an url and a movieclip. I know how to read a xml-file and how to filter it. But I can't get a grasp on how to read an xml-file and use the urls found there to load the images.
The xml file looks like this:
<gallery>
<foto id="1">
<loc>fotos/foto1.jpg</loc>
<thumb></thumb>
<desc></desc>
</foto>
<foto id="2">
<loc>fotos/foto2.jpg</loc>
<thumb></thumb>
<desc></desc>
</foto>
</gallery>
Loc being the location of the photo. (Thumb the thumbnail, desc the description - but this is for a later date)
How do I get my horizontal gallery to display foto 1, 2 and 3 next to eachother in boxes of 110x110px? It sounds so simple...
Thanks in advance