Hi all,
After hours and hours and days of coding, my little XML menu is near to be OK !
but i’ve got a problem : my menu is vertical. i want to use a mask + 2 buttons, to up and down the menu… ( with this idea, i can add lot of buttons in my menu ).
first problem:
The “setmask” don’t work !
i’ve got on MC button on the scene. inside this button, dynamic text for the button name.
i try many things, but no way…
second problem:
i put a button to “Up” my menu… but the button work only one time ! i don’t know why…
if someone can help me…
this is my AS code:
if (success) {
for (var i = 0; i<total_logos; i++) {
urlImg = this.firstChild.firstChild.childNodes*.attributes.urlImg;
tableURLimg.push(urlImg);
duplicateMovieClip("btnLogos", "btnLogos"+i, i);
// -------- here my mask that don't work:---
_this["btnLogos"+i].setMask(msk);
//-----------------------------------------
_this["btnLogos"+i]._x = 68;
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.Name;
_this["btnLogos"+i].id = i;
_this["btnLogos"+i].onRelease = function() {
preloadImg(tableURLimg[this.id]);
_this._parent.conteneurFolio.xmlPict.loadMovie(tableURLimg[this.id]);
};
//----------- why ■■■■, this button work only one time ?
btnUp.onRelease = function() {
for (var l = 0; l<total_logos; l++) {
_this["btnLogos"+l].roundedTween(["_y"], [5+(15*l)], 0.5, "easeOutCubic");
}
};
}