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
on page
80.
Only the month scrolling buttons can be dynamically skinned in this component. A
DateChooser component uses the following skin properties:
Property
backMonthButtonUpSymbolName
backMonthButtonDownSymbolName
backMonthButtonDisabledSymbolName
fwdMonthButtonUpSymbolName
fwdMonthButtonDownSymbolName
fwdMonthButtonDisabledSymbolName
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:
Create a new FLA file.
1.
Select File > Import > Open External Library, and select the HaloTheme.fla file.
2.
This file is located in the application-level configuration folder. For the exact location on your
operating system, see
In the theme's Library panel, expand the Flash UI Components 2/Themes/MMDefault folder
3.
and drag the DateChooser Assets folder to the library for your document.
Expand the DateChooser Assets/States folder in the library of your document.
4.
Open the symbols you want to customize for editing.
5.
For example, open the backMonthDown symbol.
Description
The month back button up state. The default value is
backMonthUp
The month back button pressed state. The default value is
backMonthDown
The month back button disabled state. The default value is
backMonthDisabled
The month forward button up state. The default value is
fwdMonthUp
The month forward button pressed state. The default value
is
fwdMonthDown
The month forward button disabled state. The default value
is
fwdMonthDisabled
"About themes" on page
DateChooser component (Flash Professional only)
"About skinning components"
.
.
.
.
.
.
77.
353
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?