User Guide
DateChooser component (Flash Professional only) 353
The following example demonstrates how to set the month name and days of the week to a deep
red color.
_global.styles.HeaderDateText.setStyle("color", 0x660000);
_global.styles.WeekDayStyle.setStyle("color", 0x660000);
Using skins with the DateChooser component
The DateChooser component uses skins to represent the forward and back month buttons and
the today indicator. To skin the DateChooser component while authoring, modify skin symbols
in the Flash UI Components 2/Themes/MMDefault/DateChooser Assets/States folder in the
library of one of the themes FLA files. For more information, see “About skinning components”
on page 80.
Only the month scrolling buttons can be dynamically skinned in this component. A
DateChooser component uses the following skin properties:
The button symbols are used exactly as is without applying colors or resizing. The size is
determined by the symbol during authoring.
To create movie clip symbols for DateChooser skins:
1.
Create a new FLA file.
2.
Select File > Import > Open External Library, and select the HaloTheme.fla file.
This file is located in the application-level configuration folder. For the exact location on your
operating system, see “About themes” on page 77.
3.
In the theme’s Library panel, expand the Flash UI Components 2/Themes/MMDefault folder
and drag the DateChooser Assets folder to the library for your document.
4.
Expand the DateChooser Assets/States folder in the library of your document.
5.
Open the symbols you want to customize for editing.
For example, open the backMonthDown symbol.
Property Description
backMonthButtonUpSymbolName
The month back button up state. The default value is
backMonthUp.
backMonthButtonDownSymbolName
The month back button pressed state. The default value is
backMonthDown.
backMonthButtonDisabledSymbolName
The month back button disabled state. The default value is
backMonthDisabled.
fwdMonthButtonUpSymbolName
The month forward button up state. The default value is
fwdMonthUp.
fwdMonthButtonDownSymbolName
The month forward button pressed state. The default value
is
fwdMonthDown.
fwdMonthButtonDisabledSymbolName
The month forward button disabled state. The default value
is
fwdMonthDisabled.