发光效果不会“循环”
在我的 mx:Image 组件上,我有一个creationCompleteEffect="glowIn"
<mx:Glow id="glowIn" duration="700"
alphaFrom="0" alphaTo="1"
blurXFrom="0.0" blurXTo="30.0"
blurYFrom="0.0" blurYTo="30.0" strength="2"
color="0xCCFFCC" effectEnd="glowOut"/>
<mx:Glow id="glowOut" duration="800"
alphaFrom="1" alphaTo="0"
blurXFrom="30.0" blurXTo="0.0"
blurYFrom="30.0" blurYTo="0.0" strength="2"
color="0xCCFFCC" effectEnd="glowIn"/>
问题是该效果确实在 onComplete 事件中准确,但自我效果中的“effectEnd”不会发生。因此,它不会循环遍历glowEffects,而是停留在第一个(glowIn)上。有什么解决办法吗?
谢谢,严
On my mx:Image component I have a creationCompleteEffect="glowIn"
<mx:Glow id="glowIn" duration="700"
alphaFrom="0" alphaTo="1"
blurXFrom="0.0" blurXTo="30.0"
blurYFrom="0.0" blurYTo="30.0" strength="2"
color="0xCCFFCC" effectEnd="glowOut"/>
<mx:Glow id="glowOut" duration="800"
alphaFrom="1" alphaTo="0"
blurXFrom="30.0" blurXTo="0.0"
blurYFrom="30.0" blurYTo="0.0" strength="2"
color="0xCCFFCC" effectEnd="glowIn"/>
The problem is that the effect does accure onComplete Event, but "effectEnd" in the self effect does not happen. So Instead of cycling through glowEffects it simply stays on the first one (glowIn). Any solution?
Thank, Yan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你想在effectEnd 上做什么?通常您会尝试调用一个方法,但看起来您只是给它一个字符串值。尝试这样的事情:
您的事件处理程序将是这样的:
这不应该是一个问题,但我从未见过有人监听实际效果的 efectEnd 事件。通常他们在 UIComponent 上监听它。 Sok,如果所有其他方法都失败,请将处理程序函数移至实际的 UIComponent。
What are you trying to do on effectEnd? Normally you'd try to call a method, however it looks like you're just giving it a string value. Try something like this:
Your event handlers will be something like this:
This shouldn't be an issue, but I've never seen anyone listen for the efectEnd event on the actual effect. Usually they listen for it on the UIComponent. Sok, if all else fails move your handler function to the actual UIComponent.