I try to use concat for a multidimensional array but it`s simply not working. What is the solution?
var f:Array = new Array(3, 4, 5, 6);
var t:Array = new Array("s","g");
var u:Array = new Array();
u.push(f);
u.push(t);
trace (u); // output--> 3,4,5,6,s,g
trace (u[1]); // output--> s,g
var r:Array = new Array();
r.concat(u);
trace (" r : " + r); // output--> r :
trace (" r0: " + r[0]); // output--> r0: undefined
the answer is
because the return of the concat is the result, and the inputs remain the same.