You might find this of interest as well:

http://blog.flexexamples.com/2009/04/08/creating-a-self-closing-alert-co\
ntrol-in-flex/
<http://blog.flexexamples.com/2009/04/08/creating-a-self-closing-alert-c\
ontrol-in-flex/>

-TH

--- In [email protected], "Tim Hoff" <timh...@...> wrote:
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
>
>
>
> <mx:Script>
> <![CDATA[
>
> import mx.controls.Alert;
> import mx.core.mx_internal;
>
>
>
> private static function showAlert(message:String,
> title:String):void
> {
> var alert:Alert;
> alert = Alert.show(message, title);
>
>
alert.mx_internal::alertForm.mx_internal::defaultButton.includeInLayout
> = false;
>
> alert.mx_internal::alertForm.mx_internal::defaultButton.visible =
false;
> }
> ]]>
> </mx:Script>
>
>
>
> <mx:Button label="Show Alert" click="showAlert('No button
> here','Alert Sample')"/>
>
>
>
> </mx:Application>
> -TH
>
> --- In [email protected], "markflex2007" markflex2007@
> wrote:
> >
> >
> > Hi
> >
> > Do you think if it is possible for me to build a Alert popup with
> Alert.show and the popup doesn't have any button(like ok button) and
> only have text message.
> >
> > Thanks
> >
> > Mark
> >
>


Reply via email to