【发布时间】:2011-03-31 15:42:45
【问题描述】:
我需要在 spark Buttons 中设置一些参数。我尝试了 setStyle,但它不适用于borderColor。 我的代码是这样的:
for each (var prop:XML in option.elements()){
var but:spark.components.Button = new spark.components.Button();
but.label=prop
but.width=button_width
but.setStyle("verticalAlign",'middle')
but.setStyle('chromeColor', '#'+arrayRGB[j]) // arrayRGB have the colors i need
but.setStyle('borderColor','#'+arrayRGB[i]) //<-- Don't work
container.addElement(but)
}
谢谢
【问题讨论】:
标签: actionscript-3 button border-color