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 {
       /*当按钮为 emphasized 时(例如,作为容器的默认按钮时)用作按钮外观的类的名称*/ emphasizedSkin: ClassReference("skins.CustomDefaultButtonSkin");
       
/*当按钮为非默认按钮时用作按钮外观的类的名称*/
        skin:ClassReference("skins.CustomDefaultButtonSkin")
        }
    </fx:Style>
原文地址:https://www.cnblogs.com/ddw1997/p/2719753.html