Store class name in variable and create object in as3?

I have 10 movieclip with name apple_1_x, apple_2_x…etc. I have linked those movieclips with baseclass as appleobject and class as apple_1_x. I have created appleobject class but not the class with movieclip names. I want them to inherit appleobject class. Now I want to generate these class names in a loop and create those objects. All movieclips are in library.

ex. var objname:String = “apple_” + i + “_x”; and then use main_obj = new objname();…hope its clear what i want to do. main_obj type is appleobject. But its showing “TypeError: Error #1007: Instantiation attempted on a non-constructor.”. I can not evalute the objname with new operator. How can i do this? any help is appriciated.