xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
import mx.core.FlexGlobals;
import mx.events.IndexChangedEvent;
private function changeStyleSettings(e:Event):void {
if (e.currentTarget.selectedItem == "Gray") {
FlexGlobals.topLevelApplication.setStyle("backgroundColor", 0x333333);
FlexGlobals.topLevelApplication.setStyle("baseColor", 0x4C4C4C);
FlexGlobals.topLevelApplication.setStyle("color", 0xCCCCCC);
FlexGlobals.topLevelApplication.setStyle("contentBackgroundColor", 0x555555);
FlexGlobals.topLevelApplication.setStyle("symbolColor", 0xFFFFFF);
FlexGlobals.topLevelApplication.setStyle("rollOverColor", 0x666666);
FlexGlobals.topLevelApplication.setStyle("selectionColor", 0x999999);
FlexGlobals.topLevelApplication.setStyle("focusColor", 0xEEEEEE);
} else {
FlexGlobals.topLevelApplication.setStyle("backgroundColor", 0xCCCC99);
FlexGlobals.topLevelApplication.setStyle("baseColor", 0x999966);
FlexGlobals.topLevelApplication.setStyle("color", 0x996600);
FlexGlobals.topLevelApplication.setStyle("contentBackgroundColor", 0xFFFFCC);
FlexGlobals.topLevelApplication.setStyle("symbolColor", 0x663300);
FlexGlobals.topLevelApplication.setStyle("rollOverColor", 0xFFEE88);
FlexGlobals.topLevelApplication.setStyle("selectionColor", 0xFFCC66);
FlexGlobals.topLevelApplication.setStyle("focusColor", 0xCC9900);
}
}
change="changeStyleSettings(event);">