BorderContainer 设置背景透明

阅读更多

<s:BorderContainer width="48"
 2     height="41"
 3     id="bc4"
 4     borderVisible="false">
 5     <s:layout>
 6     <s:BasicLayout clipAndEnableScrolling="true"/>
 7     s:layout>
 8     <s:backgroundFill>
 9        <s:SolidColor 
10             color="0xffffff" 
11             alpha="0"/>
12     s:backgroundFill>
13        <s:BitmapImage source="{d0}"
14              width="48"
15              height="83"
16              top="-42"
17             id="img4"/>
18      s:BorderContainer>

 

来源:http://www.cnblogs.com/dzone/archive/2011/09/22/2185118.html

 

就这段代码就可以解决 了: 其它换汤不换药,还是将背景透明度设成 0!!

 

< s:backgroundFill >
< s:SolidColor 
color ="0xffffff"  
alpha ="0" />
s:backgroundFill >

你可能感兴趣的:(BorderContainer 设置背景透明)