import mx.events.CalendarLayoutChangeEvent;
import mx.controls.DateChooser;
[Bindable]
private var myDateChooser:DateChooser = new DateChooser();
private function initPopupButton():void {
myDateChooser.selectedDate = new Date();
myDateChooser.addEventListener(CalendarLayoutChangeEvent.CHANGE, dateChangeHandler);
myPopupButton.popUp = myDateChooser;
myPopupButton.executeBindings(true);
}
private function dateChangeHandler(event:CalendarLayoutChangeEvent):void {
myPopupButton.close();
}