我有一个我想以增量移动的影片剪辑(每个增量移动都应该应用缓动)。为了让剪辑在我使用的第一个动作后进行动画处理:
var sheepMoveX:Tween = new Tween (inst_sheep, "_x", Regular.easeOut, 1142, 1092, 10, false);
sheepMoveX.onMotionFinished = function() {
sheepMoveX.continueTo(1042, 10);
}
但在此之后,我想要多个后续动作。这不起作用:
var sheepMoveX:Tween = new Tween (inst_sheep, "_x", Regular.easeOut, 1142, 1092, 10, false);
sheepMoveX.onMotionFinished = function() {
sheepMoveX.continueTo(1042, 10)
.onMotionFinished.continueTo(992, 10)
.onMotionFinished.continueTo(892, 10)
.onMotionFinished.continueTo(852, 10);
}
链接补间事件的正确格式是什么?