egret 添加帧动画
private showEffect(): void { //加载本地的帧动画资源 RES.getResByUrlNoCache("resource/assets/shenqi_eff.json", this.onNameLoadOk, this); RES.getResByUrlNoCache("resource/assets/shenqi_eff.png", this.onTextLoadOk, this); } jsonData; private onNameLoadOk(data, url): void { if (data) { this.jsonData = data; this.onComplete(); } else { console.log(`配置加载失败`); } } texture; private onTextLoadOk(data, url): void { if (data) { this.texture = data; this.onComplete(); } else { console.log(`图片加载失败`); } } onComplete(){ if(this.texture&&this.jsonData){ var mc1:egret.MovieClip = new egret.MovieClip(); /**方法1 */ let