由于button的skin属性的优先级高于combobox和colorpicker,因此如果设置了button的skin后,会影响combobox和colorpicker的显示样式。
[url]http://bugs.adobe.com/jira/browse/SDK-9485[/url]
Release Note: When skin styles are set for Button, these take precedence over the default skin styles for ColorPicker and ComboBox. To work around this, you can explicitly set the skins for ComboBox and ColorPicker:
ColorPicker
{
upSkin: ClassReference("mx.skins.halo.ColorPickerSkin");
overSkin: ClassReference("mx.skins.halo.ColorPickerSkin");
downSkin: ClassReference("mx.skins.halo.ColorPickerSkin");
disabledSkin: ClassReference("mx.skins.halo.ColorPickerSkin");
}
ComboBox
{
upSkin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
overSkin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
downSkin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
disabledSkin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
}
[url]http://bugs.adobe.com/jira/browse/SDK-9485[/url]
Release Note: When skin styles are set for Button, these take precedence over the default skin styles for ColorPicker and ComboBox. To work around this, you can explicitly set the skins for ComboBox and ColorPicker:
ColorPicker
{
upSkin: ClassReference("mx.skins.halo.ColorPickerSkin");
overSkin: ClassReference("mx.skins.halo.ColorPickerSkin");
downSkin: ClassReference("mx.skins.halo.ColorPickerSkin");
disabledSkin: ClassReference("mx.skins.halo.ColorPickerSkin");
}
ComboBox
{
upSkin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
overSkin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
downSkin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
disabledSkin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
}