I suppose this is an easy question but I can’t seem to get it to work.
How does one create and populate a 2d array in flash?
I am first defining the array with:
some_array = [],[];
and then im populating it with xml data with a loop like this:
for (c=0; c<5; c++) {
some_array[i,c] = xmlNode.childNodes*.firstChild.nodeValue;
}
please assume that this code exists in another for loop which loops i
also please assume that 5 is my total list of entries in the xml file
i simplified my code for posting.
i just want to know what the proper synax is for populating this 2d array.
also how do i access it? array [i,c]?
right now whats happening is the array does fill up but only with the last values. so obviously something isnt right.