【发布时间】:2011-05-25 19:40:20
【问题描述】:
我有一个 TitleWindow,里面有 2 个按钮。 一个按钮在内容组中,另一个在控制栏组中。 Titlewindow 和按钮的样式是 chromecolor。
为什么书房控制栏中的按钮不是红色的?
如何获得红色按钮?
<?xml version="1.0" encoding="utf-8"?>
<s:TitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
horizontalCenter="0" verticalCenter="0"
width="300" height="400"
isPopUp="true">
<s:Button label="Red Button" />
<s:controlBarContent>
<s:Button label="Red Button" />
</s:controlBarContent>
</s:TitleWindow>
样式.css:
s|TitleWindow{
chromeColor: #00FF00; //Green
backgroundColor: #0000FF; //Blue
}
s|TitleWindow s|Button{
chromeColor: #FF0000; //Red
}
【问题讨论】:
标签: flash apache-flex actionscript-3 actionscript mxml