2 Replies Latest reply on Dec 16, 2008 7:39 AM by Newsgroup_User

    Drop Shadow Filter hiding inside the Hbox container

    nit_vs
      Hi,
      I have an HBox with roundedRectangle skin inside a repeater in a vertical layout. HBox has drop shadow filter applied on it. Problem is that, as repeater is executing the drop shadow is getting hid by next HBox created below the previous Hbox. I want the shadow on the top of next HBox.
      Code Snippet:
      <mx:Repeater id="myrep" dataProvider="{myAC}">
      <mx:HBox borderSkin="RoundedRectangle" backgroundColor="0xB9C3C9" backgroundAlpha="1"
      horizontalGap="0" cornerRadius="10" width="80" height="80" verticalGap="2" >
      <mx:filters>
      <mx:DropShadowFilter distance="14" angle="45" blurX="10" />
      </mx:filters>
      </mx:HBox>
      </mx:Repeater>
      Any way to solve it?
        • 1. Re: Drop Shadow Filter hiding inside the Hbox container
          rtalton Level 4
          Sounds like things are tightly packed together, covering the drop shadow.Try increasing the horizontalGap/verticalGap a bit.
          • 2. Re: Drop Shadow Filter hiding inside the Hbox container
            Level 7

            "nit_vs" <webforumsuser@macromedia.com> wrote in message
            news:gi854o$qn5$1@forums.macromedia.com...
            > Hi,
            > I have an HBox with roundedRectangle skin inside a repeater in a
            > vertical
            > layout. HBox has drop shadow filter applied on it. Problem is that, as
            > repeater
            > is executing the drop shadow is getting hid by next HBox created below the
            > previous Hbox. I want the shadow on the top of next HBox.
            > Code Snippet:
            > <mx:Repeater id="myrep" dataProvider="{myAC}">
            > <mx:HBox borderSkin="RoundedRectangle" backgroundColor="0xB9C3C9"
            > backgroundAlpha="1"
            > horizontalGap="0" cornerRadius="10" width="80" height="80"
            > verticalGap="2" >
            > <mx:filters>
            > <mx:DropShadowFilter distance="14" angle="45" blurX="10" />
            > </mx:filters>
            > </mx:HBox>
            > </mx:Repeater>
            > Any way to solve it?
            >

            Draw them from the bottom up, or change the childIndex of each one after
            it's drawn.