I’m sure this must have come up before but how do you generate nested arrays in as3?
In AS2 I believe you could simply write arrayX[a]**[c] = d;
but in AS3 you need to declare each nested array e.g.
function someFunction(a:String, b:String, c:String, d:Array)
{
arrayX[a] = new Array();
arrayX[a]** = new Array();
arrayX[a]**[c] = d;
};
This doesn’t throw any errors but when used in a function, any subsequent
values overwrite the existing arrays. e.g. with differing values of a,b,c and d
the trace of arrayX[a]**[c].length will always be the value of the last run of the function.
Any help on this would be very very much appreciated!