代码如下:
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([url=http://file:///f:/........./bin/libs/laya.core.js:9493:14)]file:///f:/........./bin/libs/laya.core.js:9493:14)[/url]
at Animation._proto.play([url=http://file:///f:/....../bin/libs/laya.core.js:16351:10)]file:///f:/....../bin/libs/laya.core.js:16351:10)[/url]
请问各位大神这是怎么回事呢?
附件:
happyFarm.rar