Hello Everyone,
I would like to know how to integrate the flickr galleries, particularly sets, into an existing gallery (one developed by Josh Rhames) using xml.
I know nothing about the flickr api and have no time to dive in it (on top of the fact that it is really too complicated for me).
I put the code of the xml loading part of the gallery below to make it easy to give suggestions.
The procedure is pretty simple for the gallery, the info stored in the xml is the name of the picture, the location, the description, and also the location and name of the thumbs of those same pictures.
Thanks for the help guys. Cheers.
//Load the XML and set all the arrays
xml.ignoreWhite = true;
xml.onLoad = function(ok) {
if (ok)
allData = this.firstChild.childNodes;
for (var i = 0; i<allData.length; i++) {
var newBut:MovieClip = scroller.container.attachMovie("thumbMC", "thumb"+i, i);
var bgcolor:Color = new Color(newBut.thumbBg);
bgcolor.setRGB(thBgColor);
var preloaderColor:Color = new Color(newBut.bar);
preloaderColor.setRGB(barColor);
newBut.bgColor = allData*.attributes.color;
newBut.descript = allData*.firstChild.firstChild;
newBut.image = allData*.firstChild.nextSibling.nextSibling.firstChild;
newBut.link = allData*.firstChild.nextSibling.nextSibling.nextSibling.firstChild;
thumbs.push(allData*.firstChild.nextSibling.firstChild);
bigThumbs.push(allData*.firstChild.nextSibling.firstChild);
pictures.push(allData*.firstChild.nextSibling.nextSibling.firstChild);
numOfBtns* = "but"+i;
newBut.slideCounter = i;
newBut._visible = false;
newBut.endY = -1;
newBut.endX = i*(56);