Flex4中为alert的button加皮肤
<fx:Style> @namespace s "library://ns.adobe.com/flex/spark"; @namespace mx "library://ns.adobe.com/flex/halo"; mx|Alert { buttonStyleName: alertBtnStyles; } .alertBtnStyles {skin:ClassReference("skins.CustomDefaultButtonSkin")
/*当按钮为 emphasized 时(例如,作为容器的默认按钮时)用作按钮外观的类的名称*/ emphasizedSkin: ClassReference("skins.CustomDefaultButtonSkin");
/*当按钮为非默认按钮时用作按钮外观的类的名称*/
} </fx:Style>