我想通过皮肤为我的面板设置渐变背景颜色。我试图改变我的代码,但似乎没有改变。不知道该怎么办。谢谢你的回复。Flex面板内容背景颜色
我的皮肤文件
/<!-- layer 2: background fill --/>
<!--- Defines the appearance of the PanelSkin class's background. -->
<s:Rect id="background" left="1" top="1" right="1" bottom="1">
<s:fill>
<!--- @private
Defines the PanelSkin class's background fill. The default color is 0xFFFFFF. -->
<s:SolidColor id="backgroundFill" color="red"/> //Change to red but
//nothing happen....
</s:fill>
</s:Rect>
感谢您的回复,但不是运气.... :( – FlyingCat 2010-06-11 02:13:55
感谢编辑。你真的把该代码放在 /<! - 第2层:背景填充 - />标签内皮肤文件和工作?据我所知,我总是可以使用“红色”,“黑色”作为我的颜色。将颜色更改为0x不会改变任何内容。:(+1帮助我两次虽然 – FlyingCat 2010-06-11 04:07:31
我不把代码放在/ <! - layer 2:background fill - />标记下,它看起来是一个注释,但在注释符号前面还有一个斜杠,我不尝试“红色”字。 如果他们在这里没有输入错误,我认为你的代码中有很多错误的注释表示。 – michael 2010-06-11 07:34:05