# Creating an instance of what a variable evaluates as?

**URL:** <https://forum.kirupa.com/t/creating-an-instance-of-what-a-variable-evaluates-as/227760>\
**Category:** flash\
**Created:** [June 1, 2007, 8:52pm UTC](https://forum.kirupa.com/t/creating-an-instance-of-what-a-variable-evaluates-as/227760 "2007-06-01T20:52:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blommestein](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@Blommestein](https://forum.kirupa.com/u/Blommestein)\
**Post date:** [June 1, 2007, 8:52pm UTC](https://forum.kirupa.com/t/creating-an-instance-of-what-a-variable-evaluates-as/227760/1 "2007-06-01T20:52:36Z")

</div>

trace(t[i\*3]); //Prints ‘a1’ (without quotes)  
var d = new a1(); //Works fine, creates a new instance of class a1  
var d = new ti\*3; // Does not work

But how could I make that work?

Thanks in advance. 🙂
