# Is there a quicker way to generate multiple Class instances?

**URL:** <https://forum.kirupa.com/t/is-there-a-quicker-way-to-generate-multiple-class-instances/289220>\
**Category:** Uncategorized\
**Created:** [May 27, 2009, 5:44pm UTC](https://forum.kirupa.com/t/is-there-a-quicker-way-to-generate-multiple-class-instances/289220 "2009-05-27T17:44:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![screeg](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@screeg](https://forum.kirupa.com/u/screeg)\
**Post date:** [May 27, 2009, 5:44pm UTC](https://forum.kirupa.com/t/is-there-a-quicker-way-to-generate-multiple-class-instances/289220/1 "2009-05-27T17:44:38Z")

</div>

This is how I create a Class instance of Container\_, called “wall0”:  
var wall0:Container\_ = new Container\_();

I need dozens of these, numbered sequentially. Is there a syntax available that would plug into a while statement? Like:

var w:Number = -1; while(w \< 100){var (wall+[w]):Container\_ = new Container\_();}
