Button array help

Hi I have 1 button that when clicked slides and fades in 8 other buttons i have in an array in a timed sequence using Tweener via a function(note the delay time), being an AS novice I wonder if there is a way of shortening this as the button array will be around the 20 button mark.

main1_btn.onRelease = function() {
    showbtns1();
    } 

showbtns1 = function () {
    position = "open1";
    Tweener.addTween(subArray[0],{_alpha:100, time:mainBoxTS, transition:mainBoxType});
    Tweener.addTween(subArray[1],{_alpha:100, time:mainBoxTS, transition:mainBoxType, delay:0.1});
    Tweener.addTween(subArray[2],{_alpha:100, time:mainBoxTS, transition:mainBoxType, delay:0.2});
    Tweener.addTween(subArray[3],{_alpha:100, time:mainBoxTS, transition:mainBoxType, delay:0.3});
    Tweener.addTween(subArray[4],{_alpha:100, time:mainBoxTS, transition:mainBoxType, delay:0.4});
    Tweener.addTween(subArray[5],{_alpha:100, time:mainBoxTS, transition:mainBoxType, delay:0.5});
    Tweener.addTween(subArray[6],{_alpha:100, time:mainBoxTS, transition:mainBoxType, delay:0.6});
    Tweener.addTween(subArray[7],{_alpha:100, time:mainBoxTS, transition:mainBoxType, delay:0.7});
    Tweener.addTween(subArray[0],{_y:130, time:mainBoxTS, transition:mainBoxType});
    Tweener.addTween(subArray[1],{_y:152, time:mainBoxTS, transition:mainBoxType});
    Tweener.addTween(subArray[2],{_y:174, time:mainBoxTS, transition:mainBoxType});
    Tweener.addTween(subArray[3],{_y:196, time:mainBoxTS, transition:mainBoxType});
    Tweener.addTween(subArray[4],{_y:218, time:mainBoxTS, transition:mainBoxType});
    Tweener.addTween(subArray[5],{_y:240, time:mainBoxTS, transition:mainBoxType});
    Tweener.addTween(subArray[6],{_y:262, time:mainBoxTS, transition:mainBoxType});
    Tweener.addTween(subArray[7],{_y:284, time:mainBoxTS, transition:mainBoxType});
};

any help would be much appreciated

Manny

Something like this maybe


var posArr:Array = [130,152,174,196,218,240,262,284]
function showButtons():Void {
  for (i:Number=0;i<8;i++) {
    Tweener.addTween(subArray*, {_alpha:100, _y: posArr*, time:MainBoxTS, delay: i/10});
  };
};

Hay sekasi

Thank you so much, that has done the business for me and what i was trying to achieve, it’s also has helped me understand more of what i need to get a grips with.

once again

Thanks

Manny