Is there any way to detect when a Swiffy animation has completed?

后端 未结 3 1372
囚心锁ツ
囚心锁ツ 2021-02-10 00:57

Do Swiffy animations trigger an event when they\'re complete? Or is there perhaps a way to grab the current frame vs. total frames?

I tried de-minifying runtime.js as men

3条回答
  •  长情又很酷
    2021-02-10 01:29

    For anyone who comes across this post, I found a solution. I ended up using a getURL() call at the end of my FLA. It looks like this:

    getURL("javascript:animationIsComplete();");
    

    Put whatever you want in the animationIsComplete() function and it will now be triggered at the end of the Swiffy animation.

提交回复
热议问题