onComplete未触发。如果我删除updateTo行onComplete将按原样触发。
我正在使用GSAP的最新更新。
private function fingerLoop():void
{
// Set the gotoPlanet var
TweenMax.to(finger, 1, { x:gotoPlanet.x, y:gotoPlanet.y, onComplete:fingerLoop, onUpdate:moveFinger, onUpdateParams:["{self}", gotoPlanet] });
}
private function moveFinger(tween, gotoPlanet):void
{
tween.updateTo({x:gotoPlanet.x, y:gotoPlanet.y}, false);
}
答案 0 :(得分:0)
也许您可以在onComplete
电话中添加updateTo()
处理程序,如下所示:
tween.updateTo({x:gotoPlanet.x, y:gotoPlanet.y, onComplete:fingerLoop}, false);