Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/03/2018, 06:49
alrockbit
 
Fecha de Ingreso: septiembre-2010
Mensajes: 33
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: Vector de objetos en javascript

Vale. Pues parece que lo he solucionado así:

Código:
function Objeto(){
	this.id;
	this.x;
	this.op1;
	this.op2;
}

var MiObjeto= new Array(50);

for (i = 0; i < 50; i++) {
	MiObjeto[i] = new Objeto();
}