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