1 Reply Latest reply on May 16, 2010 12:28 PM by TeotiGraphix

    When I delcare a style for my Alert box, word wrap no longer works?

    rickcr Level 1

      This is driving me crazy. I want to style an alert box, but when I apply a style to it, it loses its ability to word wrap? What am I doing wrong?

       

      .errorNotification {
          corner-radius:6;
          title-style-name:"msgTitle";
          header-height:20;
          border-style:solid;
          borderColor:black;
          backgroundColor:#ffffff;
          color:red;
          fontWeight:bold;
          dropShadowEnabled:true;
          header-colors: #90a4d1, #5970a0;
          footer-colors: #9db6d9, #ffffff;
          border-color: #5970a0;
          horizontalAlign:center;
          verticalAlign:top;
          font-size :12;
      }

       

      .msgTitle{
          font-family :Verdana;
          font-size :14;
          font-weight :bold;
          text-align :left;
          color :#ffffff;
      }

       

      //usage

       

      Alert.buttonWidth = 100;

      var messageAlert:Alert = Alert.show("Foo Bar","Confirm Delete",
                          Alert.YES|Alert.CANCEL,null,handleMultipleDelete,null,Alert.YES);
      messageAlert.styleName = "errorNotification";

       

      When I even try to add width for the alert box, it's even more odd, some of the text will show up outside of the alert box??? stumped.