鼠标点击事件:
private normalState: Laya.Image;
this.normalState.on(Laya.Event.MOUSE_DOWN,this,this.hit);
缓动动画:
private normalState: Laya.Image; Laya.Tween.to(this.normalState,{y:this.upY},500,Laya.Ease.backOut,Laya.Handler.create(this,this.showComplete));
定时器:
Laya.timer.once(2000,this,this.hide); Laya.timer.loop(2000,this,this.onLoop);