Set headerColor of DateChooser with initialize event
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.events.DateChooserEvent;
private function dateChooser_init():void {
myDC.dayNames=['Sun', 'Mon', 'Tue','Wed', 'Th', 'Fri', 'Sat'];
myDC.setStyle("headerColor", 0xff0000);
}
private function onScroll():void {
myDC.setStyle("fontStyle", "italic");
}
</mx:Script>
<mx:DateChooser id="myDC"
width="200"
creationComplete="dateChooser_init();"
scroll="onScroll();" />
</mx:Application>
Related examples in the same category