public List<List> getTeachers()
{
List<List> t = new ArrayList<List>();
//temp generic user
List u1 = new ArrayList();
//id
u1.add(1);
//name
u1.add("Justin Beals");
//role
u1.add(1);
//status
u1.add(0);
//audioStatus
u1.add(0);
t.add (u1);
//temp generic user
List u2 = new ArrayList();
//id
u2.add(2);
//name
u2.add("Leif Wells");
//role
u2.add (1);
//status
u2.add(0);
//audioStatus
u2.add(0);
t.add(u2);
log.info("teacher: " + t.get(0).get(1));
log.info("teacher: " + t.get(1).get(1));
return t;
}
Then I test what I get on the client-side:
trace("loading teachers: " + obj);
for(var i in obj){
trace(i+" = "+obj[i]);
for(var n in obj[i]){
trace(n+" = "+obj[i][n]);
}
}
I get the following response:
loading teachers: 1,Justin Beals,1,1,0,1.25703635463581e-308
1 = 1.25703635463581e-308
0 = 1,Justin Beals,1,1,0
4 = 0
3 = 1
2 = 1
1 = Justin Beals
0 = 1
It is obvious that the second item in the List is being interpreted as "1.25703635463581e-308".
Anyone have any insights into this problem?
Leif
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
