Flex:根据事件动态添加效果
是否可以向 Flex 组件添加基于事件的效果(showEffect、hideEffect、addedEffect...)?我们可以在 MXML 声明中注册它们
<s:TitleWindow showEffect="{myShowEffect}"/>
我可以在 AS 代码中做同样的事情吗(如样式的 setStyle() )?谢谢!
Is it possible to add event-based effects to Flex components (showEffect, hideEffect, addedEffect,...)? We can register them in MXML declaration
<s:TitleWindow showEffect="{myShowEffect}"/>
Can i do the same in AS code (like setStyle() for styles)? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在幕后,效果是作为样式实现的。因此,在 ActionScript 中设置效果的方式与设置样式的方式相同:
样式方法有时感觉像是所有未作为实际属性实现的内容的拼凑。
Under the hood, effects are implemented as styles. So, set an effect in ActionScript the same way you'd set a style:
The style approach sometimes feels like a kludge for everything not implemented as a real property.