# Reading class name as String

**URL:** <https://forum.kirupa.com/t/reading-class-name-as-string/310118>\
**Category:** Uncategorized\
**Created:** [June 2, 2010, 3:43am UTC](https://forum.kirupa.com/t/reading-class-name-as-string/310118 "2010-06-02T03:43:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![energy](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@energy](https://forum.kirupa.com/u/energy)\
**Post date:** [June 2, 2010, 3:43am UTC](https://forum.kirupa.com/t/reading-class-name-as-string/310118/1 "2010-06-02T03:43:42Z")

</div>

hey guys,

does anyone know how do i make a string as a classname.

Example:

```php

var str:String = "Bubble"; // i have bubble class

//the below line doesn't work , it is just to 
//explain what i want. I have tried the call method also
var newCLASS = new [str+ "()"];   

//It should work like 
var newCLASS:Bubble = new Bubble();

```

Thanks!
