Components Flex


        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white">
    
        
            import mx.controls.Alert;
            import mx.events.CloseEvent;
            [Bindable]
            [Embed(source='a.png')]
            private var Icon:Class;
            private function showAlert():void {
                var titleText:String = "WARNING";
                var messageText:String = "OK to continue, Cancel to abort.";
                var a:Alert = Alert.show(messageText, titleText, Alert.OK | Alert.CANCEL, null, doClose, Icon);
            }
            private function doClose(evt:CloseEvent):void {
                trace("close");
            }