Look at getDefinitionByName.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jake Prime Sent: Thursday, July 26, 2007 9:27 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] AS3 instantiating a new class object from a stringvalue I'm not sure about the actual code to instantiate, however make sure that the class you are creating is actually compiled in the first place. If it is not explicitly mentioned in your code somewhere it will not be compiled and will not be able to be created at run-time. jake On 26/07/07, Matt Muller <[EMAIL PROTECTED]> wrote: > 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? > > Thanks, > > MaTT > _______________________________________________ > 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 > _______________________________________________ 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 _______________________________________________ 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