Hi, > For instance, if I create an array like so: > > var tableArray:Array = new Array(); > > then how do I go about placing a distance calculation in say, slot > [1703][25000]? Flex won't allow me to do this: > > tableArray[1703][25000] = distance;
You need to do something like this:
if (!tableArray.hasOwnProperty(1703)) {
tableArray[1703] = new Array();
}
tableArray[1703][25000] = distance;
That array of arrays is sparse and will only take up a little bit of space.
Thanks,
Justin
