Hi guys,
I need to call the mc from the library, dynamically any some of the mc’s from library. I named that class as “mc_1”, “mc_2”, “mc_3” etc. I now have the class name as a String. With that I can’t able to get the mc from the library.
my code is
var myString:String = "mc_1";
var mc:myString = new myString(); // Throws error.
Any help would be great.
Thanks in advance.