I need to create objects using getDefinition and pass parameter to the 
constructor but the problem is that the number of parameters can be different. 
I tried using apply like this but I can't make it work.

var classReference:Object = getDefinitionByName(className);
var object:Object = new classReference.apply(this, array);

Is there any way to do this ?

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to