In Flex (as in Java, or even PHP) you can dynamically get references to a class from its name. Just to remind you, it’s that easy in PHP:
$className = 'User';
$myUser = new $className;
Not a lot more complicated in Java:
Class className = Class.forName("User");
Object myUser = className.newIns ...