Awesome, worked like a charm. thanks!!!!! -----Original Message----- From: [EMAIL PROTECTED] on behalf of Juan Carlos Anorga Sent: Mon 11/6/2006 10:29 PM To: Flashcoders mailing list Cc: Subject: Re: [Flashcoders] AS 3.0 - dynamically create object from libraryclass
I think you are looking for getDefinitionByName(name:String) in the flash.utils package. - juan On Nov 6, 2006, at 3:15 PM, Dave Geurts wrote: > > I am trying to dynamical "attach" or create new objects from > Classes that are linked in the library. In the library I did the > linkage properties and it is using the "Auto Generated Class" > feature. Before AS 3 days I would use attach and eval to get this > working. any ideas? > > > Working Code: > var questionObj:MovieClip = new set1_1(); > inventoryPanel.addChild(questionObj); > > > > Dynamic Code does not work on creating a new class from the library > var questionObj:MovieClip = new ["set"+1+"_"+1](); > inventoryPanel.addChild(questionObj); > > returns- > TypeError: Error #1007: Instantiation attempted on a non-constructor > > > THANKS -Dave Geurts > _______________________________________________ > [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 _______________________________________________ [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
_______________________________________________ [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

