Should be in this thread (if there are no params passed)

I put a stop(); on frame 1 before all takes place then I try to load if not

Code:
} else { gotoAndStop(2);
And then I have a stop(); on frame 2 with some text that says “not uploaded any files”

However it still is trying to read in something cause it stops on frame 1 trys to load but doesnt ever kick user to frame 2. Any ideas? It still shows undefineds and the image gallery when I want it to jump to frame 2 and show error text or simply set everything to false.

Here is full code.
Code:


stop();
function loadXML(loaded) {
 if (loaded) {
  xmlNode = this.firstChild;
  image = [];
  title = [];
  description = [];
  thumbnails = [];
  total = xmlNode.childNodes.length;
  for (i=0; i<total; i++) {
   image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
   title* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
   description* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
   thumbnails* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
   thumbnails_fn(i);
  }
  firstImage();
 } else {
  content = "file not loaded!";
  } else {
  gotoAndStop(2);
 }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("/f&f/galleryimage.xml.aspx?pid=" + pid);

Thanks. MT