hi list!
I'm coding an introspection framework for as3, but i have a problem by
creating instance at runtime without using new operator.
I have no problem to create instances of classes with no operators at
its construction function. The code is this one:
public class ClassFactory{
public static function createInstance(className:String):Object
var clazz:Class = getDefinitionByName(className) as Class;
return new clazz()
}
}
I need a factory to create instance with an array of arguments, of this kind:
public static function createInstance(name:String, args:Array):Object
any idea??
thank you
_______________________________________________
[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