here's a part of the class :
function Table(seats){
//editables
var leaveTable_position=new Array('380','0','102','20');
//runtime
Table.id=0;
Table.max_buy=0;
Table.min_buy=0;
Table.player_timeout=0;
//on creation
Table.seat=new Array();
if (seats<5){seats=5;}
if (seats>5){seats=9;}
for (var i=1 ; i<=seats ; i++){
Table.seat[i]=new Seat(i);
Table.seat[i].create();
}}
you see the Table.seat public array ? assuming i have 3 seats (table.seat[0]; table.seat[2];) ...
the following code gives me 'seat is undefined' !!!
table=new Table();
table.seat[2].getUser();
any ideas why ? am not that good in js oop !