hi,
i make an XML menu…
i’ve got this pb : ALL button have the same URL ( the last url of my xml file )… what’s wrong ?
this is my code :
for (var i = 0; i<total_logos; i++) {
duplicateMovieClip("btnLogos", "btnLogos"+i, i);
_this["btnLogos"+i]._x = 50;
btnOver("btnLogos", i);
btnOut("btnLogos", i);
_this["btnLogos"+i].roundedTween(["_y", "_alpha"], [50+(15*i), 100], 1+i/8, "easeOutCubic");
_this["btnLogos"+i].logoName.text = this.firstChild.firstChild.childNodes*.attributes.nom;
_this["btnLogos"+i].id = i;
urlImg = monFolio.firstChild.firstChild.childNodes*.attributes.urlImg;
// pb here :urlImg always = the last image in my xml file....
_this["btnLogos"+i].onRelease = function() {
trace(urlImg);
};
}