Caurina Tweener 未完成动画问题
你好 我正在编写一个网站 我正在使用 caurina tweener 和 hove 问题来处理我尝试补间的几乎每个对象。 问题是补间对象有时无法完成动画。这很烦人,我听说这可能与垃圾收集有关。 这是一些示例代码,
Tweener.addTween(this, { rotationX:0, time:.5 } ); //Where 'this' is movieClip
感谢任何帮助
Hello
I am coding a website
I am using caurina tweener and hove problem with pretty much every object that i try to tween.
Problem is that the tweened object sometimes just don't finish the animation. That's pretty annoying and i heard that this could be something with garbage collection.
Here is some sample code
Tweener.addTween(this, { rotationX:0, time:.5 } ); //Where 'this' is movieClip
any help is appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于您正在以 3D 方式旋转对象(rotationX),因此您的对象更有可能正确完成补间,但您的视角使其看起来不一样。
更多信息请参见:示例:透视投影
since you're rotating your object in 3D (rotationX) it's more likely, as it seems, that your object is completing the tween correctly but your perspective makes it appear otherwise.
more here: Example: Perspective projection
确保没有同时运行竞争的补间。这可能会导致动画冲突,并且最后运行的动画将是您看到的唯一动画。我通常在调用 Tweener.addTween(myObject, {}) 之前执行 Tweener.removeTweens(myObject) 操作:
Make sure you don't have competing Tweens running at the same time. This can result in conflicting animations, and the last one to run will be the only one you see. I usually do a Tweener.removeTweens(myObject) prior to calling Tweener.addTween(myObject, {}):