[]版本管理swf找同名的Json文件发现找不到

QQ截图20180615112949.png

Map192622077fd.swf
这个找对应的json文件找不到
发现version.json里配的是Map192e06db1ff.json
MovieClip类是找Map192622077fd.json
export class MMovieClip extends Laya.MovieClip{
        constructor(){
            super();
        }
        //初始化预加载数据
        public m_initData(url:string,atlas:boolean,atlasPath?:string){
            (atlas===void 0)&& (atlas=false);
            this['_url']=url=Laya.URL.formatURL(url);
            if(atlas)this['_atlasPath']=atlasPath?atlasPath:url.split(".swf")[0]+".json";
            this.stop();
            //this['_clear']();
            this._movieClipList=[this];
            var data;
            data=Loader.getRes(this['_url']);
            if (!data){
                this.event(/*laya.events.Event.ERROR*/"error","file not find");
                return;
            }
            // console.log("this['_atlasPath']---->",this['_atlasPath']);
            var atls_ary:Array<any> = Loader.getAtlas(this['_atlasPath']);
            this.basePath=atls_ary['dir'];
                //this.basePath = "map1.swf";
            this['_initData'](data);
        }
    }
已邀请:

Aar0n

赞同来自:

替换这个类

要回复问题请先

商务合作
商务合作