# How to create object with string?

**URL:** <https://forum.kirupa.com/t/how-to-create-object-with-string/140279>\
**Category:** Uncategorized\
**Created:** [March 9, 2005, 8:43pm UTC](https://forum.kirupa.com/t/how-to-create-object-with-string/140279 "2005-03-09T20:43:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fng](https://avatars.discourse-cdn.com/v4/letter/f/58956e/32.png) [@fng](https://forum.kirupa.com/u/fng)\
**Post date:** [March 9, 2005, 8:43pm UTC](https://forum.kirupa.com/t/how-to-create-object-with-string/140279/1 "2005-03-09T20:43:10Z")

</div>

Hi all,

Is there anyway to create an object with a string?

For example :  
var myClassString:String = “myClass”; // myClass is my real class

then create an object with something like :  
var myObject object = new myClassString(); // I need to create the object from the string …

Anyone please? Many Thanks in advance.

Best Regards
