我正在尝试更改flex 4中textinput组件的背景颜色。我已经能够通过搞乱使用固定代码flash builder为sparkskin生成来改变一些外观但是出于某种原因,背景确实如此什么都没有。
我只是想让背景变黑。我更改了背景颜色,但它不起作用:
<!-- fill -->
<!--- Defines the appearance of the TextInput component's background. -->
<s:Rect id="background" left="1" right="1" top="1" bottom="1">
<s:fill>
<!--- @private Defines the background fill color. -->
<s:SolidColor id="bgFill" color="0x000000" />
</s:fill>
</s:Rect>
答案 0 :(得分:2)
看一下行:
/* Define the content fill items that should be colored by the "contentBackgroundColor" style. */
static private const contentFill:Array = ["bgFill"];
因此,只要你的情况不需要就删除id:
<s:Rect id="background" left="1" right="1" top="1" bottom="1">
<s:fill>
<!--- @private Defines the background fill color. -->
<s:SolidColor color="0x000000" />
</s:fill>
</s:Rect>
并删除上面列出的行。