MaTT, See getDefinitionByName() function in flash.utils It will give you a reference to the class name that is specified by a string. You can then use that reference to get an instance of that class.
Of course you must make sure the class is loaded. Regards, Benny -----Oorspronkelijk bericht----- Onderwerp: [Flashcoders] AS3 instantiating a new class object from a string value Hi, I'm trying to instantiate a new class object from a xml attribute which is a string, but its not having any of it. I've tried casting the string to an object and also using this['class_id'] etc but no luck. Does someone have a solution? _______________________________________________ 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