Mega Code Archive

 
Categories / Flex / Components
 

Alert With Styles

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundColor="#eeeeee">   <mx:Style>   @namespace mx "http://www.adobe.com/2006/mxml";     mx|Alert {       color:#000000;       background-color:#FFFFFF;       font-family:Courier, "_typewriter";       rounded-bottom-corners:false;       corner-radius:15;       border-color:#000000;     }     .windowStyles      {       font-family:Arial, "_sans";       font-size:14;       font-style:italic;       color:#FFFFFF;     }   </mx:Style>      <mx:Script>            import mx.controls.Alert;              private function simpleAlert():void       {         Alert.show("An Alert dialog box with styles applied", "Alert Title");       }      </mx:Script>      <mx:Button label="Alert with Style" click="simpleAlert()"/>    </mx:Application>