Gallery with category

Hi there,

Currently I am creating a flash homepage for my friend’s family. I’ve generated an image gallery thumbnails from kirupa. I add category pictures which can choose the year using combobox component. I also transform .xml to be .php. But I’ve got some problems.

So technically, I send the ‘year’ variable to the xml php, which is then will choose the data’s from mysql database with statement “WHERE year=’$year’”, then flash will load the xml of the data shown in xml php.

The problem is, everytime the combobox change the selection, the selected picture and the position of the thumbnail_mc remains on the previous postion. Well… hard to explain, but you can see the photo gallery here

This is the code how i send the variable and load the xml.php

dataSender = new LoadVars();
xmlData = new XML();
openXML();
year_cb.addEventListener("change", xmlData);
xmlData.change = function() {
	dataSender.year = year_cb.value;
	dataSender.sendAndLoad("xmls/gallery.php",xmlData, "GET");
	openXML();
};

function openXML(){
		xmlData.ignoreWhite = true;
		xmlData.onLoad = loadXML;
		xmlData.load("xmls/gallery.php?"+dataSender);
}

How can I reset the thumbnail position?
Thank you.

Ayok