[FMX] Need help please! - Image gallery - PHP_XML_FLASH

Hi gurus,

I am trying to make an image gallery using xml/php and flash. I have the image urls in an array. To show the thubmnails i use PHP GD and resize it.

Now I want to display these thumbnails in a film like strip dynamilcaly created one. and that the images should load one after another. I should also be able to specify onClick handler to these images to load the actual size image.

my code loads the images simultaneously.


	for(i=0;i<img.length;i++){
	im = _root.container.createEmptyMovieClip("holder"+i,i+2);
 url="http://localhost/sandosh/scripts/resizeimagetest.php?folder="+fl+"&file="+img*;
	im.loadMovie(url);
	 im.onMouseUp = function(){
		// But this doesnt work
	}
	im._x = 100*i+10;
}

the onMouseup handler doesnt work here.