cocoscreator 在xx.createInstance之前调用bindall 后 编译器还是报各文件 fgui is not defined
cocoscreator 在xx.createInstance之前调用bindall 后 编译器还是报各文件 fgui is not defined
这个错误到底要怎么处理?试过在各个地方掉用bindall都不行
这个错误到底要怎么处理?试过在各个地方掉用bindall都不行
没有找到相关结果
已邀请:
2 个回复
momo
赞同来自:
fgui.UIPackage.loadPackage("hall", this.onUILoaded.bind(this));
}
onUILoaded(){
hallBinder.bindAll();
this._view = Hall.createInstance();
this._view.makeFullScreen();
fgui.GRoot.inst.addChild(this._view);
this._view.btnChip.onClick(()=>{}, this);
}
按教程说的 在createInstance之前调用 这样也还是会报错
谷主
赞同来自: