StablexUI icon indicating copy to clipboard operation
StablexUI copied to clipboard

Type not found

Open hopewise opened this issue 7 years ago • 1 comments

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?

hopewise avatar Aug 31 '18 13:08 hopewise

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()?

RealyUniqueName avatar Sep 02 '18 13:09 RealyUniqueName