DateField component

The DateField component is a nonselectable text field that displays the date with a calendar icon on its right side.

NOTE

The DateField component is supported only if you are working in a document that specifies ActionScript 2.0 in its Publish Settings.

If no date has been selected, the text field is blank and the month of today's date is displayed in the date chooser. When a user clicks anywhere inside the bounding box of the date field, a date chooser pops up and displays the dates in the month of the selected date. When the date chooser is open, users can use the month scroll buttons to scroll through months and years and select a date. When a date is selected, the date chooser closes and the selection is entered in the date field.

TIP

The date field is cleared when a user selects the same date twice. To prevent users from accidentally deselecting their desired date, see the example for DateField.selectedDate.

The live preview of the DateField component does not reflect the values indicated by the Property inspector or Component inspector during authoring, because it is a pop-up component that is not visible during authoring.

Related topics