flex 给group填充背景图片、颜色

来源:互联网 发布:跟我学plc编程 编辑:程序博客网 时间:2024/06/02 02:27
<s:Group left="0" right="0" top="0" bottom="0">
        <s:Rect x="0" y="0" height="100%" width="100%">
            <s:fill>
                <s:SolidColor color="#6297de"/>
            </s:fill>

        </s:Rect>

<s:Group>

<s:Group x="0" y="0" height="100%" width="100%">
<s:Rect x="0" y="0" height="100%" width="100%">
<s:fill>
<s:BitmapFill source="@Embed('../pic/001.jpg')"/>
</s:fill>
</s:Rect>
</s:Group>
原创粉丝点击