Well this creates one array, with string name, but i need dynamic names...
Hell, i'll try to express in code, here it is:
ActionScript Code:
for(var i:int = 1; i <= 2; i ++) {
var subMenuBASE:Array = this["subMenu" + i] as Array;
this[subMenuBASE] = new Array();
this.subMenu[i] = "hello";
this.subMenu[i].push("world");
}
trace(subMenu1);
trace(subMenu2);
I want this loop code to create actual arrays named subMenu1 and subMenu2, but when i trace them - i get an error, coz it doesn't seem to actually create them
I'm pretty mcuh sure that there should be one or two words of code that would change the situation, but i don't know them!(