StablexUI
StablexUI copied to clipboard
Type not found
I am trying to register an xml class type in a macro as:
UIBuilder.buildClass("src/ui/inspectors.xml", "com.clientside.ui.ComponentsInspectorsXML");
then, when I try to access it as
var inspectors:com.clientside.ui.ComponentsInspectorsXML = new com.clientside.ui.ComponentsInspectorsXML();
I get error:
Type not found : com.clientside.ui.ComponentsInspectorsXML
Any idea?
Perhaps the place where you instantiate the class gets into the compilation earlier than the place where you add UIBuilder.buildClass().
Do you have other classes built with UIBuilder.buildClass()? Can you instantiate them in the same place where you are trying new ComponentsInspectorXML()?