http://www.accidentalbeauty.co.uk/xml.htm
I have used the kirupa XML photogallery tutorial to build a gallery in flash. It works exactly how it should however the gallery always starts on image no 1 and I would like to make buttons that go to different parts of the XML data ie different images. Im really only 50% sure on what I’m doing and I have loaded up the piece for anybody to view
http://www.accidentalbeauty.co.uk/xml.htm
if anyone could offer a glimmer of hope I would be forever in debt…mamamasonic (thanks Dylan for guidance do far!!)
I have also included my script
AS on button
on (press) {
gotoAndStop(2);
var images = images.xml.firstChild.firstChild.childNodes*;
for (var i = 0; i<images.length; i++) {
currImage = images*;
if (items*.attributes.type == “images”) {
var images = items*.childNodes[1];
}
var xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = processXMLData;
xmlData.load(“images.xml”);
stop();
}
}
xml file
<?xml version=“1.0” encoding=“utf-8” standalone=“yes”?>
<images>
<pic>
<image>image1.swf</image>
</pic>
<pic>
<image>image2.swf</image>
</pic>
<pic>
<image>image3.swf</image>
</pic>
<pic>
<image>image4.swf</image>
</pic>
<pic>
<image>image5.swf</image>
</pic>
<pic>
<image>image6.swf</image>
</pic>
<pic>
<image>image7.swf</image>
</pic>
<pic>
<image>image8.swf</image>
</pic>
<pic>
<image>image9.swf</image>
</pic>
<pic>
<image>image10.swf</image>
</pic>
<pic>
<image>image11.swf</image>
</pic>
<pic>
<image>image12.swf</image>
</pic>
<pic>
<image>image13.swf</image>
</pic>
<pic>
<image>image14.swf</image>
<caption>Structure</caption>
</pic>
<pic>
<image>image15.swf</image>
</pic>
<pic>
<image>image16.swf</image>
</pic>
<pic>
<image>image17.swf</image>
</pic>
<pic>
<image>image18.swf</image>
</pic>
<pic>
<image>image19.swf</image>
</pic>
<pic>
<image>image20.swf</image>
</pic>
<pic>
<image>image21.swf</image>
</pic>
</images>