DateField.selectedDate

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

dateFieldInstance.selectedDate

Description

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.

Example

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);