var firstarray:Array = new Array();
function traceArray(arr:Array){
for(var i:int = 0; i < arr.length; ++i) {
trace(firstarray[i].matrix);
}
}
for (var i:int = 0; i < 10; ++i) {
firstarray.push({ matrix:[1,0,0,1], prod:i});
}
var secondarray:Array = new Array();
secondarray = firstarray;
secondarray.push({ matrix:"hello" });
traceArray(firstarray);
should the trace result be
1,0,0,1 1,0,0,1 1,0,0,1 1,0,0,1
1,0,0,1 1,0,0,1 1,0,0,1 1,0,0,1
1,0,0,1 1,0,0,1 hello
or
1,0,0,1 1,0,0,1 1,0,0,1 1,0,0,1
1,0,0,1 1,0,0,1 1,0,0,1 1,0,0,1
1,0,0,1 1,0,0,1