The efficient way is to do it in css:

  Alert {
    header-colors:#FF0000, #0000FF;
    background-color:#333333;
    color:#FFFFFF;
  }

You can change the styles at runtime too, but that can be extremely
inefficient.

  import mx.styles.StyleManager;

  StyleManager.styles.Alert.setStyle("headerColors",
    [0xFFFFFF, 0x0000FF]);
  StyleManager.styles.Alert.setStyle("backgroundColor",
    0x333333);
  StyleManager.styles.Alert.setStyle("color",
    0xFFFFFF);


--- In [email protected], "Pablo Apanasionek"
<[EMAIL PROTECTED]> wrote:
>
> I hate to post these kind of things, because they seem obvious, but I
> guess not obvious enough for it to work, at least for me. =)

> How can I change the background color on the Alert PopUp with the
> titleStyleDeclaration property? I tried any of the background/header
> styles but got no results.

> Is there any efficient way fo changing the default style of the Alert
> (besides extending the class) ?

> Thanks in advance!
> --
> Pablo Gustavo Apanasionek
>






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




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to