1 Reply Latest reply on Mar 15, 2007 6:22 AM by newbit77

    dropShadow on Alert box

    flashblind
      Hi
      Anyone know the correct method/syntax to use to apply a dropShadow filter to an Alert box created with ActionScrript?
      I've tried applying it to Alert as follows:

      import flash.filters.DropShadowFilter;
      var dropShadow : DropShadowFilter = new DropShadowFilter(5, 90, 0x000000, 0.7, 10, 10, 3, 3);
      _global.styles.Alert.filters = [dropShadow];

      ...but with no luck. Don't get the dropShadow when Alert.show() is called.

      Thanks in advance.

      P.S. the space around the colon in the variable definition is deliberate to stop an emoticon appearing in this message!

        • 1. Re: dropShadow on Alert box
          newbit77
          // import the class
          import flash.filters.DropShadowFilter;
          // creating filter & storage
          var dropShadow : DropShadowFilter = new DropShadowFilter(5, 90, 0x000000, 0.7, 10, 10, 3, 3);
          myFilters:Array = new Array();
          myFilters.push(dropShadow);
          // creating a instance of the componet
          myAlert:Alert = Alert.show("Hello World");
          // setup the filter property
          myAlert.filters = myFilters;