cocoscreator 在xx.createInstance之前调用bindall 后 编译器还是报各文件 fgui is not defined

cocoscreator 在xx.createInstance之前调用bindall 后 编译器还是报各文件 fgui is not defined
 
这个错误到底要怎么处理?试过在各个地方掉用bindall都不行
已邀请:

momo

赞同来自:

onLoad () {
        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之前调用 这样也还是会报错

谷主

赞同来自:

你这个和bindall有什么关系,fgui的库都还没放好。先下载demo。

要回复问题请先登录注册