【问题标题】:Is it possible to set specific border side color of GridItem in ActionScript?是否可以在 ActionScript 中设置 GridItem 的特定边框颜色?
【发布时间】:2014-03-25 07:30:47
【问题描述】:
我想要实现的是 GridItem ,我想用特定颜色设置左/右/上/下边框。
例如,像css:
border-left:solid red 3px;
border-right:solid violet 4px;
border-top:solid blue 4px;
border-bottom:solid green 4px;
如何在 ActionScript 中使用特定颜色(不同的边框侧边颜色)设置特定的边框侧边颜色?谢谢
【问题讨论】:
标签:
apache-flex
border
flex-mx
【解决方案1】:
您可以使用样式为 GridItem 绘制边框,如下所示:
GridItem.setStyle("borderColor","red");
GridItem.setStyle("borderSides","left top right bottom");
GridItem.setStyle("borderStyle","inset");
GridItem.setStyle("borderThickness",4);