# Instantiate class from an Array?

**URL:** <https://forum.kirupa.com/t/instantiate-class-from-an-array/309876>\
**Category:** flash\
**Created:** [May 26, 2010, 5:36pm UTC](https://forum.kirupa.com/t/instantiate-class-from-an-array/309876 "2010-05-26T17:36:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jany](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jany](https://forum.kirupa.com/u/jany)\
**Post date:** [May 26, 2010, 5:36pm UTC](https://forum.kirupa.com/t/instantiate-class-from-an-array/309876/1 "2010-05-26T17:36:59Z")

</div>

To call a class we would type: var testClass = new TestClass();

Can I store the class in an array, and somehow pull it when I want to call it the same way? I need to be able to call a new class like the example above, but from an array. :luigi:

tyvm
