[]版本管理swf找同名的Json文件发现找不到
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);
}
}
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Aar0n
赞同来自: