egret.Tween.get() ,激活一个对象,对其添加 Tween 动画
egret.Tween.get(this)
to() ,将指定对象的属性修改为指定值
egret.Tween.get(this).to({ x: 0 , y : 0},1000,type)
// 当前对象在1秒内 位移 到(0,0)点,并设置运动类型为type
call() ,执行回调函数
egret.Tween.get(this).to({ x: 0 , y : 0},1000,type).call(function (){
console.log("到达目标点");
},this)
// 在对象到达(0,0)点后,执行回调函数,打印"到达目标点"