以下以Group为例子讲述如何在Flex 4中填充背景颜色、图片:
1、图片填充方式:
<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('../imges/myBg.jpg')"/>
</s:fill>
</s:Rect>
</s:Group>
2、渐变色填充方式:
<s:Rect alpha="0.5" x="0" y="0" width="100%" height="100%">
<s:fill>
<s:LinearGradient rotation="250">
<s:GradientEntry color="0x222222" ratio="0"/>
<s:GradientEntry color="0xdddddd" ratio="1"/>
</s:LinearGradient>
</s:fill>
</s:Rect>
Flex 4中组件背景设置(填充方式)group为例子
最新推荐文章于 2024-07-09 16:38:59 发布
本文介绍了在Flex4中使用Group组件进行背景填充的方法,包括利用图片和渐变色两种方式。通过具体的MXML代码示例展示了如何实现这些效果。
998

被折叠的 条评论
为什么被折叠?



