Dynamic Construtors

Is it possible to initiate a class based on a String of the class name?

Here’s the code that I WANT to work, but it doesn’t:


var className:String;

//get the class name from XML
....

var character:Character = new [className](properties) as Character;

I’ve also tried using the .constructor() method to instantiate it. That doesn’t error out, but it doesn’t instantiate the class either. Just turns out to be null.

Are dynamic constructors possible?

Thanks,
Eric