Possible to create object instances of class in for-loop? object1, object2, object3,

Exactly this doesn’t work but is there a way to do it?


for ( var i = 0; i < 10; i++ )
{
	var ["object"+i]:MyClass = new MyClass();

	// would create object1, object2, object 3, object 4, ... 

}