cuixueying
// 动画
Laya.Animation.createFrames(["map/Characters/Blue_JumpLeft_Smile.png"], ActionType.JUMP_LEFT);
// 创建动画
this.animation = new Laya.Animation();
this.animation.interval = 150;
this.animation.play(0, true, ActionType.MOVE_RIGHT);
this.addChild(this.animation);
我通过下面代码方式添加事件,但没有触发this.onLoad方法:
this.animation.on(Laya.Event.LOADED, this.animation, this.onLoad);
麻烦问一下,通过动画模版创建动画的方式如何添加Event.LOADED事件?