User Guide

433
15
CHAPTER 15
DateField component (Flash
Professional only)
The DateField component is a nonselectable text field that displays the date with a calendar
icon on its right side. If no date has been selected, the text field is blank and the month of
todays 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.
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.
Using the DateField component (Flash
Professional only)
The DateField component can be used anywhere you want a user to select a date. For
example, you could use a DateField component in a hotel reservation system with certain
dates selectable and others disabled. You could also use the DateField component in an
application that displays current events, such as performances or meetings, when a user
chooses a date.
NOTE
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 on page 459.