如何更改 Flex 中的模式透明度
我使用 PopUpManager 创建一个模态窗口
_zoomImgPopUp = PopUpManager.createPopUp(this, Image, true) as Image;
当打开模态窗口时,所有背景都是灰色且模糊的。 我怎样才能改变背景的颜色、模糊和透明度。
我找到这篇文章 http://mprami.wordpress.com/2008/04/22/alert_popup_modal_transparancy_color_blur_changes/
但它适用于“mx”应用程序。我需要一些带有“火花”组件的东西。
UPD:已解决。它必须是:
_zoomImgPopUp.setStyle("modalTransparency", 0);
_zoomImgPopUp.setStyle("modalTransparencyBlur", 0);
PopUpManager.addPopUp(_zoomImgPopUp, this, true);
I create a modal window with PopUpManager
_zoomImgPopUp = PopUpManager.createPopUp(this, Image, true) as Image;
When the modal window is opened, all background is gray and with blur.
How can i change color, blur and transparency of background.
I find this article
http://mprami.wordpress.com/2008/04/22/alert_popup_modal_transparancy_color_blur_changes/
but it is for "mx" application. I need something with "spark" components.
UPD: Solved. It must be:
_zoomImgPopUp.setStyle("modalTransparency", 0);
_zoomImgPopUp.setStyle("modalTransparencyBlur", 0);
PopUpManager.addPopUp(_zoomImgPopUp, this, true);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以访问影响模态的标签中的样式。
您应该能够执行此操作:
您可以将其放入引用弹出窗口的应用程序/组件/模块中。
You have access to styles in the tag that affect Modal.
You should be able to do this:
You can put this in your application / component / module that references the popup.