【发布时间】:2016-04-26 13:26:12
【问题描述】:
我正在尝试禁止补间继续。时钟已从屏幕上移除,但功能仍会触发。
我尝试在下面执行此操作,但在我的“计时器长度”结束后,我仍然听到音频。
clockContainer.removeAllChildren();
self.stage.removeChild(mytweentodisable);
不确定如何重构它以阻止函数继续运行。
mytweentodisable = createjs.Tween.get(clockHand, { loop: false }).to({ rotation: 360 }, TimerLength).call(function () {
//this will trigger the timer is up
if (gameIsRunning == true) {
createjs.Sound.stop();
gameIsRunning = false;
createjs.Sound.play("gameOver");
}
});
【问题讨论】:
标签: javascript createjs tween