执行效果时获取当前目标值
在效果执行的某个时刻,我想执行一些代码。
举例来说,我对对象 A 有一个移动效果,在该效果进行到一半时我想让对象 B 消失。
Spark 效果框架中是否内置了任何功能来执行此操作,或者我是否需要自己手动实现该效果?
At a certain point in an effects execution i would like to execute some code.
Say for example that i have a move effect on objectA and half way through this effect i want to make objectB disapear.
Is there any functionality built in to the spark effects framework to do this or do i need to implement the effect myself by hand?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果不使用计时器,我认为您无法使用效果库。不过,我建议您查看 TweenMax;它是一个令人惊叹的动画库,快速、高效,并且有很多非常酷的选项(就像你刚才所说的)。
Short of using a timer, I don't think you can with the effect library. However, I recommend you look at TweenMax; it's an amazing animation library that is fast, efficient and has a lot of really cool options (like what you just said).
您可以在第二个效果上使用像 Parallel 这样的复合效果并带有 startDelay 吗?
Could you use a composite effect like Parallel with a startDelay on the second effect?