ActionScript 2.0 Components Language Reference |
|
|
|
| DateField component > DateField.selectedDate | |||
Flash Player 6 (6.0.79.0).
Flash MX Professional 2004.
dateFieldInstance.selectedDate
Property; a Date object that indicates the selected date if that value falls within the value of the selectableRange property. The default value is undefined.
The following example sets the selected date to June 7:
my_df.selectedDate = new Date(2003, 5, 7);
The following example uses a DateField instance named my_df on the Stage to show how to disable an already selected date (otherwise, the user can click it again to clear the date field entry):
function dfListener(evt_obj:Object):Void {
my_df.disabledRanges = [my_df.selectedDate];
}
my_df.addEventListener("change", dfListener);
|
|
|
|