flex4 如何给hbox设置背景图片
hbox里面怎么没有backgroundimage这个方法呢,记得以前还有呢
[解决办法]
<mx:HBox width="100" height="100">
<s:Group width="100" height="100">
<s:Rect width="100" height="100">
<s:fill>
<s:BitmapFill source="@Embed(source='assets/images/LeftBannerAd.jpg')" fillMode="repeat">
</s:BitmapFill>
</s:fill>
</s:Rect>
</s:Group>
</mx:HBox>
<s:BorderContainer backgroundImage="@Embed(source='assets/images/LeftBannerAd.jpg')">
<s:layout>
<s:VerticalLayout gap="0"/>
</s:layout>
</s:BorderContainer>