[]加载时间轴动画报错
代码如下:
this.ani = new Laya.Animation();
this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));
function showApe(){
this.ani.loadAnimation("TimeLine.ani");
Laya.stage.addChild(this.ani);
this.ani.play();
}
运行时报
TypeError:Cannot read property '_create' of null
at Animation._proto.timerLoop(file:///f:/........./bin/libs/laya.core.js:9493:14)
at Animation._proto.play(file:///f:/....../bin/libs/laya.core.js:16351:10)
请问各位大神这是怎么回事呢?
this.ani = new Laya.Animation();
this.ani.loadAtlas("res/atlas/comp.json", Laya.Handler.create(this, showApe));
function showApe(){
this.ani.loadAnimation("TimeLine.ani");
Laya.stage.addChild(this.ani);
this.ani.play();
}
运行时报
TypeError:Cannot read property '_create' of null
at Animation._proto.timerLoop(file:///f:/........./bin/libs/laya.core.js:9493:14)
at Animation._proto.play(file:///f:/....../bin/libs/laya.core.js:16351:10)
请问各位大神这是怎么回事呢?
没有找到相关结果
已邀请:
2 个回复
Monica - 知识达人
赞同来自:
tinalucky
赞同来自: