User Guide

DateField class (Flash Professional only) 439
11. Drag a DateField component to the Stage.
12. Select Control > Test Movie.
DateField class (Flash Professional only)
Inheritance MovieClip > UIObject class > UIComponent class > ComboBase > DateField
ActionScript Class Name mx.controls.DateField
The properties of the DateField class let you access the selected date and the displayed month
and year. You can also set the names of the days and months, indicate disabled dates and
selectable dates, set the first day of the week, and indicate whether the current date should
be highlighted.
Setting a property of the DateField class with ActionScript overrides the parameter of the
same name set in the Property inspector or Component inspector.
Each component class has a
version property, which is a class property. Class properties are
available only on the class itself. The
version property returns a string that indicates the
version of the component. To access this property, use the following code:
trace(mx.controls.DateField.version);
Method summary for the DateField class
The following table lists methods of the DateField class.
NOTE
The code trace(myDateFieldInstance.version); returns undefined.
Method Description
DateField.close() Closes the pop-up DateChooser subcomponent.
DateField.open() Opens the pop-up DateChooser subcomponent.