Flex4 中 borderContainer 控件的样式设置

不管怎么样,努力学习吧。

今天记录下borderContainer 控件的一些样式。

【AS3中的写法】

[Bindable]                 
[Embed("images/bg.png")]               
private var red:Class;  
private var myContainer:BorderContainer = new BorderContaine();  
myContainer.setStyle("borderVisible",false);//去掉边框线   
myContainer.setStyle("backgroundColor","0xff0000");//设置背景色  
myContainer.setStyle("backgroundImage",red);//设置背景图片 

 【CSS中的写法】

【CSS中的写法】
s|BorderContainer{
    backgroundImage: Embed('images/bg.png');
    fontSize:12px; 
}
原文地址:https://www.cnblogs.com/wqing/p/2365258.html