----- Original Message -----
From: "Danny Kodicek" <[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Monday, March 19, 2007 10:08 AM
Subject: [Flashcoders] Create an object by name
If I have a string, how can I make an object from the class it represents?
Eg:
I have class MyBigClass
the string className contains the text "Big"
I want to do something like
obj:Object = new("My" + className + "Class")()
Might be interesting to know why you need to do this at all.
Paul
snip
Danny
_______________________________________________
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