In AS2, I always enjoyed the trick whereby you dynamically create Objects from a string describing their class:
var classname:String = "somepackage.SomeClass"; var constructor:Function = eval( classname ); var myObject:Object = new constructor(); // makes an instance of class SomeClass Is this possible in AS 3.0? I don't see any eval() or _global -- that sort of removes the two possible ways I knew of doing this... Any help very appreciated, ---- Peter Balogh Director, Engineering Organic Inc. _______________________________________________ [email protected] 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

