将 Flex Titlewindow 背景设置为透明
我有一个模态 Flex 对话框,想要使背景不是窗口本身的背景,而是使半透明模态指示器透明。 (是的,我试图说服客户他们不想这样做,但显然他们真的想这样做)。这可能吗?
(更喜欢使用 Flex 3 的 TitleWindow 的解决方案,但 Spark/Flex 4 TitleWindow 也可以接受)
I have a modal Flex dialog and want to make the background not of the window itself, but the semitransparent modal indicator transparent. (Yes I tried to convince the client they don't want to do this, but apparently they really want to do it). Is this even possible?
(prefer a solution using Flex 3's TitleWindow, but Spark/Flex 4 TitleWindow is acceptable)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,我认为我提出的问题是错误的,但这就是我正在寻找的答案:
http://www.learnosity.com/techblog/index.cfm/2007/4/25/Disable-the-blur-effect-in-Flex-PopupManager-modal-background
解释添加:
到flex CSS 就可以了;您还可以将 modalTransparency 设置为 0,它实际上会实现我所说的我想要的功能,但我想我将尝试说服我的客户,禁用模糊就是他们所需要的(他们希望能够阅读popups)
(我想禁用 PopUpManager 的背景而不是 TitleWindow)
不过还是感谢您的帮助。
Yeah, I think I phrased the question wrong, but this is the answer I was looking for:
http://www.learnosity.com/techblog/index.cfm/2007/4/25/Disable-the-blur-effect-in-Flex-PopupManager-modal-background
to paraphrase add:
to the flex CSS and you're good; You can also make the modalTransparency 0 which will actually do what I said I wanted, but I think I'm going to try to convince my client that disabling the blur is all they needed (they want to be able to read the text under the popups)
(I wanted to disable the background of the PopUpManager not the TitleWindow)
Thanks for the help though.
抱歉没有明确的答案,但是您是否尝试过设置属性
backgroundAlpha="0"
?
Sorry not to have a definite answer, but have you tried setting the property
backgroundAlpha="0"
?
对于弹性 3;您是否尝试过在 TitleWindow 上指定 alpha?基于对代码的快速审查;它似乎不会将 alpha 传递给子项(例如关闭按钮、标题栏或标题栏背景)。
使用 Spark 架构;您应该能够使用自定义皮肤轻松完成此操作。
For flex 3; have you tried specifying the alpha on the TitleWindow? Based on a quick review of the code; it does not appear to pass the alpha down to the children (such as the close button, title bar, or title bar background.
Using the Spark Architecture; you should be able to do this easily with a custom skin.