有什么方法可以检测Swiffy动画何时完成? [英] Is there any way to detect when a Swiffy animation has completed?

查看:212
本文介绍了有什么方法可以检测Swiffy动画何时完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Swiffy动画完成后触发事件吗?或者是有可能抓住当前帧与总帧的方式吗?

我尝试了在另一个SO帖子中提到的对runtime.js进行反编译,但是我可以 t解密它。

解决方案

对于遇到这篇文章的人来说,我找到了一个解决方案。我结束了在我的FLA结束使用getURL()调用。它看起来像这样:

  getURL(javascript:animationIsComplete();); 

在animationIsComplete()函数中放入任何你想要的东西,现在它会在Swiffy动画。


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 mentioned in another SO post, but I can't decipher it.

解决方案

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.

这篇关于有什么方法可以检测Swiffy动画何时完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆