Actionscript 3 编辑组合框周围的边框
我正在尝试删除组合框周围的边框。我想设置borderStyle=“无”,但ComboBox没有“borderStyle”选项。我使用Adobe Flash调试器找到了它的位置。筑巢看起来像这样Actionscript 3 编辑组合框周围的边框,actionscript-3,apache-flex,combobox,flash-builder,Actionscript 3,Apache Flex,Combobox,Flash Builder,我正在尝试删除组合框周围的边框。我想设置borderStyle=“无”,但ComboBox没有“borderStyle”选项。我使用Adobe Flash调试器找到了它的位置。筑巢看起来像这样 myComboBox --> styleDeclaration --> styleManager --> stylesRoot --> borderStyle 现在这个边框样式被设置为“入口”,我希望它是“无”。然而,我
myComboBox
--> styleDeclaration
--> styleManager
--> stylesRoot
--> borderStyle
现在这个边框样式被设置为“入口”,我希望它是“无”。然而,我能接触到的最深的是styleManager。styleManager不允许我访问stylesRoot。我想知道如何访问stylesRoot以更改“borderStyle”属性
我用来访问styleManager的代码如下所示:
var myCSSSD:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ComboBox");
或
任何关于如何到达这个borderStyle酒店的想法都会很好。提前感谢。Flex控件具有setStyle方法 您可以使用边框样式属性,如下所示
<mx:Style>
.myComboboxStyle
{
border-style: none;
border-thickness:0;
}
</mx:Style>
其中cmb是组合框的名称
如果你有进一步的问题,可以问我
<mx:Style>
.myComboboxStyle
{
border-style: none;
border-thickness:0;
}
</mx:Style>
cmb.setStyle("styleName","myComboboxStyle");