在容器上创建插入的dropShadow

Bea*_*ker 1 apache-flex containers dropshadow

我想知道如何在一个容器上创建一个drophadow,它会给出容器低于其父容器的外观.通常,阴影主要应用于右侧和下侧的外侧.我想要实现的是应用于顶部和左侧内侧的阴影.这个想法是给出容器嵌入其父级的外观.

任何想法将不胜感激.

RIA*_*tar 6

像饼一样简单:你需要inner属性:DropShadowFilter#inner

例:

<s:Rect width="100" height="100">
    <s:fill>
        <s:SolidColor color="0xff0000" />
    </s:fill>

    <s:filters>
        <s:DropShadowFilter inner="true" />
    </s:filters>
</s:Rect>
Run Code Online (Sandbox Code Playgroud)