# Dynamic movieclip problem

**URL:** <https://forum.kirupa.com/t/dynamic-movieclip-problem/73232>\
**Category:** flash\
**Created:** [December 14, 2004, 12:42pm UTC](https://forum.kirupa.com/t/dynamic-movieclip-problem/73232 "2004-12-14T12:42:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SePP](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@SePP](https://forum.kirupa.com/u/SePP)\
**Post date:** [December 14, 2004, 12:42pm UTC](https://forum.kirupa.com/t/dynamic-movieclip-problem/73232/1 "2004-12-14T12:42:47Z")

</div>

```auto

images = new Array();
xml_file = "../xml/gallerijen.xml";

xmlload = new XML();
xmlload.ignoreWhite = true;
xmlload.onLoad = function(ok) {
	if (ok) {
		count = this.firstChild.childNodes.length;
		for (var i = 0; i<count; i++) {
			curNode = this.firstChild.childNodes*;
			images* = {name:curNode.childNodes[0].firstChild.nodeValue,description:curNode.childNodes[1].firstChild.nodeValue,linkimg:curNode.childNodes[2].firstChild.nodeValue,date:curNode.childNodes[3].firstChild.nodeValue,id:curNode.childNodes[4].firstChild.nodeValue};
		}
		boot();
		
	} else {
		trace("Could not load "+xml_file+".");
	}
	

};
xmlload.load(xml_file);

boot = function () {
	spacing = 15;
	for (var i = 0; i<images.length; i++) {
		thumbke = "thumb"+i;
		container.attachMovie("thumbMC", "thumb"+i, i);
	
		container["thumb"+i].loadMovie(images*.linkimg);
		loadMovie(images*.linkimg, container["thumb"+i]);
		
		container["thumb"+i]._x = i*(55+spacing);
		container["thumb"+i]._y = 15;
[COLOR=Red] container["thumb"+i].onRelease = function(){
			trace("ok");
		}[/COLOR]
			
	}

```

Everything of this dynamic navigation works perfect. But he doesn’t want to do the “onRelease”. I don’t get a hand cursor It simply doesn’t work.

below is the xml file. the fla is also included.

Please check it out

```auto

<?xml version="1.0" encoding="iso-8859-1"?>
<gallijst>
<gal>
<name>1991 till 1993</name>
<description>alright</description>
<linkimg>../images/20041206205315.jpg</linkimg>
<date>20041206205315</date>
<id>1</id>
</gal>
<gal>
<name>1994 till 1995</name>
<description>alright</description>
<linkimg>../images/20041206205315.jpg</linkimg>
<date>20041206205315</date>
<id>2</id>
</gal>
<gal>
<name>1997 till 1999</name>
<description>alright</description>
<linkimg>../images/20041206205315.jpg</linkimg>
<date>20041206205315</date>
<id>3</id>
</gal>
<gal>
<name>1997 till 1999</name>
<description>alright</description>
<linkimg>../images/20041206205315.jpg</linkimg>
<date>20041206205315</date>
<id>3</id>
</gal>
<gal>
<name>1997 till 1999</name>
<description>alright</description>
<linkimg>../images/20041206205315.jpg</linkimg>
<date>20041206205315</date>
<id>3</id>
</gal>
</gallijst>

```
