您的位置:首页 > 其它

flex 弹出模式窗口 模式蒙板透明度设置

2011-09-09 17:10 302 查看
//global css style settting
var sparkTitleWindowCSS:CSSStyleDeclaration=FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration("spark.components.TitleWindow");
sparkTitleWindowCSS.setStyle("modalTransparencyColor", 'white');
sparkTitleWindowCSS.setStyle("modalTransparencyBlur", 0.1);

sparkTitleWindowCSS.setStyle("modalTransparency", 0.1);

var alertCSS:CSSStyleDeclaration=FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration("mx.controls.Alert");
alertCSS.setStyle("modalTransparencyColor", 'white');
alertCSS.setStyle("modalTransparencyBlur", 0.1);

alertCSS.setStyle("modalTransparency", 0.1);


如上: 通过style manager 先获取某个组件的css申明, 然后将设置以下两个属性

modalTransparency modalTransparencyBlur

这样设置后通过popupmanager弹出的窗口,背景就更加透明

modalTransparencyColor 此属性可能设置蒙板颜色
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: