为什么TweenLite.delayedCall函数(函数,计数)只重复4次然后停止

时间:2015-02-13 03:21:26

标签: html5 tweenlite

我不知道为什么TweenLite.delayedCall函数(函数,计数)只重复4次然后停止?

function test1()
{
    console.log('1');
    TweenLite.delayedCall(2, test2);
}

function test2()
{
    console.log('2');
    TweenLite.delayedCall(2, test3);
}

function test3()
{
    console.log('3');
    TweenLite.delayedCall(2, test4);
}

function test4()
{
    console.log('4');
    TweenLite.delayedCall(2, test1);
}

我不知道为什么TweenLite.delayedCall函数(函数,计数)只重复4次然后停止?

感谢你的回答!

1 个答案:

答案 0 :(得分:1)

function test1()
{
    console.log('1');
    TweenMax.delayedCall(2, test2);
}

function test2()
{
    console.log('2');
    TweenMax.delayedCall(2, test3);
}

function test3()
{
    console.log('3');
    TweenMax.delayedCall(2, test4);
}

function test4()
{
    console.log('4');
    TweenMax.delayedCall(2, test1);
}

test1();

http://codepen.io/ronex/pen/yOMWoB