Flex 4文本输入皮肤背景色



我正在尝试更改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>

看一下line:

    /* 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>

并删除上面列出的行

最新更新