Components Flex



  
  
    import mx.controls.Alert;
    [Embed(source="logo.png")]
    private var sampleIcon:Class;
    private function showAlert(event:Event):void {
      var alert:Alert = Alert.show("test",
                                   "Important Message",
                                   Alert.OK,
                                   this,
                                   null,
                                   sampleIcon);
    }