I'm creating this array.
var GPA_Array:Array=new Array();
var dg:DataGrid= new DataGrid();
gpaBuild();
function gpaBuild()
{
dg.columns=["Num","Course","Grade","Credits"];
GPA_Array.push({Num:"1",Course:"ADS",Grade:"A+",Credits:"4"});
GPA_Array.push({Num:"1",Course:"ADD",Grade:"A+",Credits:"4"});
dg.dataProvider=new DataProvider(GPA_Array);
}
after pushing data in the array ,i need to accees Grade and credits. I have tried this method,
GPA_Array[0][1],GPA_array[0][2] ,
but it didn't work. If i try to trace it
trace(GPA_Array[0][1])
it gives me undefined . also ,when i use trace(GPA_array.toString), it gives me error.