# To reach classes dynamically, AS3

**URL:** <https://forum.kirupa.com/t/to-reach-classes-dynamically-as3/324931>\
**Category:** Uncategorized\
**Created:** [September 16, 2011, 12:51pm UTC](https://forum.kirupa.com/t/to-reach-classes-dynamically-as3/324931 "2011-09-16T12:51:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ziggurat](https://avatars.discourse-cdn.com/v4/letter/z/67e7ee/32.png) [@Ziggurat](https://forum.kirupa.com/u/Ziggurat)\
**Post date:** [September 16, 2011, 12:51pm UTC](https://forum.kirupa.com/t/to-reach-classes-dynamically-as3/324931/1 "2011-09-16T12:51:05Z")

</div>

Hi I have not been able to find anything in this matter, but I hardly think I would be the first to try it so maybe I am looking in the wrong places.  
What I want to do is set up a dynamical access to 20 or so classes. (They are bitmaps in the library that I want to connect with MCs that are implemented in the code.)

So the classes may be named p1, p2 and so on. But when I try to use the “new” command it does not let me write anything else than the specific name.

Please help me!
