flash.utils.getDefinitionByName() There's some more useful stuff in the flash.utils package. Have a look in the docs.
Muzak ----- Original Message ----- From: "Patrick Matte|BLITZ" <[EMAIL PROTECTED]> To: <flashcoders@chattyfig.figleaf.com> Sent: Monday, June 18, 2007 10:24 PM Subject: [Flashcoders] AS3 new Class from string Hey fellows, in AS3 how can I create class instances from a list of classes names. Take for example something like this: import Circle; import Square; import Triangle; var list:Array = new Array("Circle","Square","Triangle"); for(var i=0;i<list.length;i++){ var class = new list[i](); } _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com