I am trying to create movieClips in a loop based on a predefined amount. I want to have the variables defined as btn1, btn2, btn3 etc.
this is what i have done but i don’t know how to put the number in the variable name and then push all of the buttons into an array:
btnLL=[];
for (var i:uint=1; i<languagesIndex; i++) {
var btn*:MovieClip = new MovieClip(); //"*:" part is wrong but what is right way?
btnLL.push(btn*); //also how does one push all of the btns into this array?
}
do you know how to do this?