Reflection Utils.
static public function getClass(fullname:String):Function
Return the class object by the specified class name.
Then you can use this way to create a new instance of this class:
var classConstructor:Function = Reflection.getClass("your_class_name"); var instance:YourClass = YourClass(new classObj());Or call it's static method from this way:
var classConstructor:Function = Reflection.getClass("your_class_name"); classConstructor.itsStaticMethod(args);
fullname | the class's full name include package. For example "org.aswing.Component" |
the class object of the name