Xml Multiple gallery

[FONT=Arial][SIZE=2]First let me say that I am really new to XML. I have been playing around with different codes to learn. Really am not sure what I am doing yet[/SIZE][/FONT]

[FONT=Arial][SIZE=2]I have this one code I have been playing with - Not sure were I downloaded it from. It is a basic xml gallery that has a great burn image transition effect.[/SIZE][/FONT]

[FONT=Arial][SIZE=2]I am trying to get multiple galleries for this - but what I have tried is not working.[/SIZE][/FONT]

[FONT=Arial][SIZE=2]I downloaded Scotty’s multiple gallery for his resizing xml and still cannot combine the two- Any help would be appreciated. [/SIZE][/FONT]

[FONT=Arial][SIZE=2]This is the code for the transition effect[/SIZE][/FONT]

[FONT=Arial][SIZE=2]

function loadXML(loaded) {
 if (loaded) {
  xmlNode = this.firstChild;
  image = [];
  description = [];
  total = xmlNode.childNodes.length;
  for (i=0; i<total; i++) {
   image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
   description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
  }
  firstImage();
 } else {
  desc_txt.text = "file not loaded!";
 }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////

[/SIZE][/FONT]


 
[FONT=Arial][SIZE=2]//This code lets you press the left and right keys to change images. 
listen = new Object();
listen.onKeyDown = function() {
 if (Key.getCode() == Key.LEFT) {
  returnImagePrev();
 } else if (Key.getCode() == Key.RIGHT) {
  returnImageNext();
 }
};
Key.addListener(listen);[/SIZE][/FONT]
 
[FONT=Arial][SIZE=2]/////////////////////////////////////[/SIZE][/FONT]
 
[FONT=Arial][SIZE=2]previous_btn.onRelease = function() {
 returnImagePrev();
};
next_btn.onRelease = function() {
 returnImageNext();
};[/SIZE][/FONT]
 
[FONT=Arial][SIZE=2]
/////////////////////////////////////
 
p = 0;
this.onEnterFrame = function() {
 filesize = picture.getBytesTotal();
 loaded = picture.getBytesLoaded();
 preloader._visible = true;  
 if (loaded != filesize) {
  //This tells the preloader animation to move one frame for every 1 percent the image loads. 
  //So you could have a different animation for the preloader at every frame.
  preloader.bar.gotoAndStop(int((loaded)*100/filesize));
 } else {
  preloader._visible = false;  
 }
};
 
/////////////////////////////////////
 //This is the code that I found that changes the RBG values of the image. 
 //The value of "this.val" starts at 0 when the file is loaded. That means it fades from white. 
 //If you want the image to fade to partly white, "this.val" should be between 0 and 255.
 //To return the image to white, add this line: "this.val = this.ori;" on a function (like a button).
MovieClip.prototype.animateBrightness = function(ori) {
 this.ori=ori;
 this.jj = new Color(this);
 this.col = this.jj.getTransform();
 this.col.rb = this.col.gb=this.col.bb=this.val=this.ori;
 this.jj.setTransform(this.col);
 this.onEnterFrame = function() {
  if (loaded == filesize and turnwhite == false){
  this.val = 0;
   } else if (turnwhite == true) {
  this.val = this.ori;
  }
  if (this.col.bb != this.val) {
   this.col.rb = this.col.gb=this.col.bb += (this.val-this.col.bb)/11;
   //The higher the number '11' is, the slower the brightness animation
  }
  this.jj.setTransform(this.col);
 };
};
 
/////////////////////////////////////
function returnImageNext() {
 if (p<(total-1)) {
 turnwhite = true;
 delay = setInterval(nextImage, 1500);
 }
}
 
function returnImagePrev() {
 if (p>0) {
 turnwhite = true;
 delay = setInterval(prevImage, 1500);
 }
}
 
 
function nextImage() {
 clearInterval(delay);
 if (p<(total-1)) {
  p++;
  if (loaded == filesize) {
   turnwhite = false;
   picture.loadMovie(image[p], 1);
   desc_txt.text = description[p];
   picture_num();
 
  }
 }
}
function prevImage() {
 clearInterval(delay);
 if (p>0) {
  p--;
  turnwhite = false;
  picture.loadMovie(image[p], 1);
  desc_txt.text = description[p];
  picture_num();
 }
}
function firstImage() {
 if (loaded == filesize) {
  turnwhite = false;
  picture.loadMovie(image[0], 1);
  desc_txt.text = description[0];
  picture_num();
 }
}
function picture_num() {
 current_pos = p+1;
 pos_txt.text = current_pos+" / "+total;
}
stop();
[/SIZE][/FONT]