3 Replies Latest reply on Feb 16, 2007 6:55 AM by rayess

    Alert.show()

    teleski


      What happened to the Alert style? In beta 3, the alert was all blue/green and now the title bar is grey with unreadable white text. If this is now the case, how can I set a style on the statically created Alert?

      -regards
        • 1. Re: Alert.show()
          teleski Level 1
          This works, where alertTitle is declared in my styleSheet as:
          .alertTitle { color: #000000; fill:#FFFFFF; }

          private function httpFault(event:FaultEvent):void
          {
          var faultstring:String = event.fault.faultString;
          al = Alert.show(faultstring, "Server error");
          al.styleDeclaration.setStyle("titleStyleName", "alertTitle");
          }

          • 2. Re: Alert.show()
            rayess
            I also have a problem with the color style in this component,
            am setting myAlert.setStyle("color","0x000000"); but the color changes apply to only the title of the alert not to body text while in the reference they are saying that this style name (color) will change the whole color of the component.
            So does anyone have a clue?
            • 3. Re: Alert.show()
              rayess Level 1
              any idea?