User Guide

DateChooser class (Flash Professional only) 417
8. Click the Back button to return to the main timeline.
9. Drag a DateChooser component to the Stage.
10. Select Control > Test Movie.
DateChooser class (Flash Professional
only)
Inheritance MovieClip > UIObject class > UIComponent class > DateChooser
ActionScript Class Name mx.controls.DateChooser
The properties of the DateChooser 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 DateChooser 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.DateChooser.version);
NOTE
The DateChooser Assets/States folder also contains a Day Skins folder with a single
skin element,
cal_todayIndicator. This element can be modified during authoring to
customize the today indicator. However, it cannot be changed dynamically on a
particular DateChooser instance to use a different symbol. In addition, the
cal_todayIndicator symbol must be a solid single-color graphic, because the
DateChooser component applies the
todayColor color to the graphic as a whole. The
graphic may have cut-outs, but keep in mind that the default text color for today’s
date is white and the default background for the DateChooser is white, so a cut-out
in the middle of the today indicator skin element would make today’s date
unreadable unless either the background color or the today text color is
also changed.
NOTE
The code trace(myDC.version); returns undefined.