Simplify sintax

hello, for some reason my movieClip is not showing… i get no errors but for some reasons, my movieclip is not showing as i call it on my code…

how can i go from here which works


barMenu.menu1.onRelease = function () {
    new Tween(barMenu, "_y", Bounce.easeIn, barMenu._y, -42, .50, true);
    new Tween(menu1Total, "_y", Bounce.easeIn, menu1Total._y, -15, .50, true);
    new Tween(menu1Total, "_alpha", Strong.easeIn, 0, 100, .50, true);
}

barMenu.menu2.onRelease = function () {
    new Tween(barMenu, "_y", Bounce.easeIn, barMenu._y, -42, .50, true);
    new Tween(menu2Total, "_y", Bounce.easeIn, menu2Total._y, -15, .50, true);
    new Tween(menu2Total, "_alpha", Strong.easeIn, 0, 100, .50, true);
}

to something like this… i’m trying to not write this over and over again and just simplify it


for (i=1; i<10; i++) {
 barMenu["menu"+i].iD = i;
 barMenu["menu"+i].onRelease = function() {
      new Tween(barMenu, "_y", Bounce.easeIn, barMenu._y, -42, .50, true);
    new Tween("menu"+i+"Total", "_y", Bounce.easeIn, ["menu"+i+"Total"]._y, -15, .50, true);
    new Tween("menu"+i+"Total", "_alpha", Strong.easeIn, 0, 100, .50, true);
 };
}

please advice.

thanks