function x1() {  
 this.ON = "on";  
 this.OFF = "off";  
 this.Level = new Array();  
 this.LevelREG = new Array();  
}  
  
function N() {  
 this.x0 = new x1();  
}  
  
var z = new N();  
z.x0.ON = "abc";  
dies funktioniert so weit gut nun möchte ich aber das x0 ein Array ist.
Ich also z.B:
  
z.x0[0].ON = "abc";  
z.x0[1].ON = "def";  
schreiben kann. Wie muss ich dies machen?

 nicht angemeldet
 nicht angemeldet