1 Reply Latest reply on Nov 12, 2008 1:16 PM by evoluent

    Prevent drop shadow from bubbling to children

    evoluent
      Hi all,

      The drop shadow filter on a HBox seems to propagate to all children. How can I prevent this?

      Cheers,

      -Tony
        • 1. Re: Prevent drop shadow from bubbling to children
          evoluent Level 1
          Here is sample code. The DropShadow filter propagates to all children. Does anyone know why, and how I can prevent it?

          Oddly, if I reproduce this in MXML, the DropShadow filter does not propagate!

          var myHBox:HBox = new HBox();
          myTileComponent.addChild(myHBox);

          var my_shadow:DropShadowFilter = new DropShadowFilter();
          var filtersArray:Array = new Array(my_shadow);
          myHBox.filters = filtersArray;

          var myText:Text = new Text();
          myText.text = "Test";
          myText.filters = null;
          mYHBox.addChild(songTitle);