# Thumbnail xml gallery loading problem

**URL:** <https://forum.kirupa.com/t/thumbnail-xml-gallery-loading-problem/131079>\
**Category:** Uncategorized\
**Created:** [December 11, 2004, 6:17pm UTC](https://forum.kirupa.com/t/thumbnail-xml-gallery-loading-problem/131079 "2004-12-11T18:17:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phatbyte](https://avatars.discourse-cdn.com/v4/letter/p/5f9b8f/32.png) [@phatbyte](https://forum.kirupa.com/u/phatbyte)\
**Post date:** [December 11, 2004, 6:17pm UTC](https://forum.kirupa.com/t/thumbnail-xml-gallery-loading-problem/131079/1 "2004-12-11T18:17:13Z")

</div>

hello folks!

got one big problem with this thumbnail gallery… i tested it localy with apache and php and it worked nice! i uploaded it to the web provider and the script freaks out… like it won’t read the stop(); on second frame… maybe someone can help me out!?  
klick on a folder to see what i mean with freakin out!  
[http://www.petznick.at/ludschi/index.php](http://www.petznick.at/ludschi/index.php)

frame one:

```php

  function loadXML(loaded) {
  	if (loaded) {
  		xmlNode = this.firstChild;
  		image = [];
  		description = [];
  		total = xmlNode.childNodes.length;
  		
  		for (i=0; i<total; i++) {
  			image* = xmlNode.childNodes*.attributes.href;
  			description* = xmlNode.childNodes*.attributes.name;
  			
  			
  			
  		}
  		gotoAndPlay(2);
  	} else {
  		trace("xmlfile not loaded");
  	}
  
  }
  
  xmlData = new XML();
  xmlData.ignoreWhite = true;
  xmlData.onLoad = loadXML;
  xmlData.load("lib.php?function=getThumbfiles&dir=Wallpapers");
  

```

frame two:

```php

  var x = 15;
  var y = 15;
  
  for (u=0; u<total; u++) {
  	var turl = "pic_srv.php?img=Wallpapers/" + image[u] + "&x=100&y=100";
  	var t = this.createEmptyMovieClip ("thumbnail" + u, u);
  	var c = t.createEmptyMovieClip ("picHolder", 0);
  	c.loadMovie (turl);
  	c._x = x + u * (100 + x);
  	c._y = y;
  	t.url = "Wallpapers/" + image[u];
  	t.onRelease = function() {
  		_root.mc_wallpaperopener.loadMovie(this.url);
  	}
  }
  stop();
  

```

thanks in advance!!!  
oliver
