//load XML-----------------------------------------------
miniature = new XML();
miniature.ignoreWhite = true;
miniature.load("xml/miniature.xml");
elenco = new Array(); var thumb:Number;
//create arrays and MCs----------------------------------
miniature.onLoad = function(success) {
if (miniature.loaded) {
var aNode:XMLNode = miniature.firstChild;
thumb = aNode.childNodes.length;
for (a=0; a<thumb; a++) {
elenco[a] = aNode.childNodes[a].firstChild.nodeValue;
ist = "img"+[a];
thumbs.createEmptyMovieClip(ist,a*1);//create container
ist1 = eval("thumbs."+ist);
loadMovie(elenco[a], ist1);//load photo in container
ist1.onRelease = function() {
trace("pippo");
};
}
}
};