1 Reply Latest reply on Oct 1, 2006 11:33 AM by Newsgroup_User

    Alert positioned

    Level 7
      I have a flash form and this code to send an alert onload. The Alert is
      positioned below my form. Is there a way to get it to be positioned on top
      or within the form?

      Thanks for any help you can give!!!

      var myAlert = mx.controls.Alert.show("Please enter your zip code first.",
      "Information");

      //set the font color and button labels of all alerts
      _global.styles.Alert.setStyle("color", 0x0066CC);
      mx.controls.Alert.buttonWidth = 50;


      //set the style of the title only with a named style declaration
      mx.controls.Alert.titleStyleDeclaration = "windowStyles";
      //change the size
      myAlert.width = 190;
      myAlert.height = 100;
      myAlert.verticalAlign = "Top";
      myAlert.verticalGap = 1;
      myAlert.y = 0;

      //change this alert's style only
      myAlert.setStyle("fontStyle", "italic");
      myAlert.setStyle("panelBorderStyle","default");
      myAlert.setStyle("cornerRadius","0");


        • 1. Re: Alert positioned
          Level 7
          Correction it appears in the middle of the form I would like it to appear at
          the top.

          Any Ideas?

          "Rick" <rick@di-wave.com> wrote in message
          news:efote2$c2n$1@forums.macromedia.com...
          >I have a flash form and this code to send an alert onload. The Alert is
          >positioned below my form. Is there a way to get it to be positioned on top
          >or within the form?
          >
          > Thanks for any help you can give!!!
          >
          > var myAlert = mx.controls.Alert.show("Please enter your zip code first.",
          > "Information");
          >
          > //set the font color and button labels of all alerts
          > _global.styles.Alert.setStyle("color", 0x0066CC);
          > mx.controls.Alert.buttonWidth = 50;
          >
          >
          > //set the style of the title only with a named style declaration
          > mx.controls.Alert.titleStyleDeclaration = "windowStyles";
          > //change the size
          > myAlert.width = 190;
          > myAlert.height = 100;
          > myAlert.verticalAlign = "Top";
          > myAlert.verticalGap = 1;
          > myAlert.y = 0;
          >
          > //change this alert's style only
          > myAlert.setStyle("fontStyle", "italic");
          > myAlert.setStyle("panelBorderStyle","default");
          > myAlert.setStyle("cornerRadius","0");
          >
          >