this.skeleton = new Laya.Skeleton();
this.skeleton.pos(Laya.stage.width / 2, Laya.stage.height / 2);
this.skeleton.load("UIRes/main/dh_ndbs.sk", Laya.Handler.create(this, function () {
xxxxx.addChild(this.skeleton);
var num = this.skeleton.getAnimNum();
let name = this.skeleton.getAniNameByIndex(num - 1);
this.skeleton.play(name, false);
this.skeleton.on(Laya.Event.STOPPED, this, function () {
//xxxxx
});
}));
//是否循环的判断监听,不太一样
//this.skeleton.on.play(name, true)
//this.skeleton.on(Event.COMPLETE, this, function(){
//});