Hi.
There are ways of doing this: theyre all inside the flash.util(s) package.
For example:
public function createInstance(className:String):TitleWindow{
var myClass:* = getDefinitionByName(className) ;
var instance:* = new myClass();
return instance as TitleWindow;
}
There is am issue you have to be aware of: you have to declare a var
to force the compilation of the class.
So, when I need to do it, I have to declare vars like:
private var somewindow:SomeWindow; //One of the TitleWindows Im
wishing to popup.
Hope it helps :0)