Thanks Whispers... this seems exactly what I am looking for.
So I assume that I need to (in order):
1. Load the XML file using the following code
2. Then I will need to create the arrays of the images (I am thinkign that I need to do 4 of them - one for each folder). I was playing around with arrays to get just the file name and I think I need to do something similar to the following:Code:var galleryXML = new XML(); galleryXML.ignoreWhite = true; galleryXML.load("gallery.xml"); var currentIndex:Number = 0; var data:XML; galleryXML.onLoad = function(success) {
3. Use the code that you have enclosed and feed the information I created in step 2 to load the images and make it work?Code:filename = []; total = galleryXML.childNodes.length; for (i=0; i<total; i++) { filename[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue; var imageName:Array=this.firstChild.childNodes var len:Number=imageName.length-1 for(var i:Number=0;i<=len;i++)
Thanks for your help... it ight not seem like it, but I am slowly learning.
BRent




Reply With Quote