0
從timerEvent我調用了一個函數[say'createBall'],每次傳遞一個Variable [ballCount]。 在該函數[創建球]中,補間已被調用,TweenComplete監聽器也被添加。 現在,補間還沒有完成,也沒有給出任何錯誤。補間法中的問題AS3
tweenX = new Tween(obj,"x",Regular.easeInOut,nX,this["tile" + String(bombHit_A[nBombCount] + 0)].x,2,true);
tweenY = new Tween(obj,"y",Regular.easeInOut,nY,this["tile" + String(bombHit_A[nBombCount] + 0)].y,2,true);
tweenX.addEventListener(TweenEvent.MOTION_FINISH, function (e:TweenEvent){hitCompleted(e,obj.name,"tile" + String(bombHit_A[nBombCount] + 0),nBombCount)});