Hi,

This should get you going:


import mx.controls.Alert;

public var myAlert:Alert;

private function showCustomAlert():void 
{
    myAlert = Alert.show("Hello World");
    myAlert.styleName = "customAlert";
}


CSS:

.customAlert {
    backgroundColor:    blue;
}

-TH

--- In [email protected], "lostinrecursion" <[EMAIL PROTECTED]> 
wrote:
>
> Hi all,
> 
> Quick question. I know that through the "Alert" selector in a CSS
> file, we can set many properties of an Alert box globally.
> 
> Is there any way in which I can do this on an instance level? Or is
> this impossible because Alert is called from the class itself?
> 
> For example, sometimes an Alert in my application is used to 
display
> an error message and sometimes I use it for success notifications.
> 
> Obviously for usability reasons, I would like to have a different 
look
> for each of those.
> 
> Thanks.
> 
> -LIR
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to