# Detecting Params If none then send em'

**URL:** <https://forum.kirupa.com/t/detecting-params-if-none-then-send-em/225270>\
**Category:** flash\
**Created:** [May 10, 2007, 7:12am UTC](https://forum.kirupa.com/t/detecting-params-if-none-then-send-em/225270 "2007-05-10T07:12:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Multi\_Task](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Multi\_Task](https://forum.kirupa.com/u/Multi_Task)\
**Post date:** [May 10, 2007, 7:12am UTC](https://forum.kirupa.com/t/detecting-params-if-none-then-send-em/225270/1 "2007-05-10T07:12:04Z")

</div>

Good morning yall. Question I wrote this little gallery module that uses a DB and flash for some family and friends. I have a question about what to do if there are no pictures for a certain user. Here is how I am grabbing the params:

AS:

```auto

 
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!";
 }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("/f&f/galleryimage.xml.aspx?pid=" + pid); 

```

Now if there is no readable XML list for that person how can I go about detecting that and then sending them to frame 2 where a message would be displayed. Everything is built on frame 1. I am using Flash 8. And everything works great and pulls fine from database however if there are no images for that person it looks kinda ugly with a bunch of undefined text ect… Thanks in advance yall. Im gonna hunt around the Nets and see if I can learn anything new on this. Hit me with any advice. MT
