Hi
I need help with array !
I got a array named bagList, then I put 4 different array into bagList
the code looks like :
static var bagList=new Array();
static var slotList1=new Array();
static var slotList2=new Array();
static var slotList3=new Array();
static var slotList4=new Array();
bagList[0]=slotList1;
bagList[1]=slotList2;
bagList[2]=slotList3;
bagList[3]=slotList4;
Now I would like to get the length of slotList1 by using bagList
I also want set/get the data that inside slotList1.
I did this:
bagList[0].length;
bagList[0][3]="egg"
if(bagList[0][3]=="egg"){
}
but they all doesn't work.
can anyone tell me how to play these array which inside other array please.
↧