MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 369

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

The DateField component uses four categories of text to display the month name, the days of the
week, today's date, and regular dates. The text style properties set on the DateField component
itself control the regular date text and the text displayed in the collapsed state, and provide
defaults for the other text. To set text styles for specific categories of text, use the following class-
level style declarations.
Declaration name
HeaderDateText
WeekDayStyle
TodayStyle
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 DateField component
The DateField component uses skins to represent the visual states of the pop-up icon, a
RectBorder instance for the border around the text input, and a DateChooser instance for the
pop-up. To skin the pop-up icon while authoring, modify skin symbols in the Flash UI
Components 2/Themes/MMDefault/DateField Assets/States folder in the library of one of the
themes FLA files. For more information, see
information about skinning the RectBorder and DateChooser instances, see
on page 647
and
Besides the skins used by the subcomponents mentioned above, a DateField component uses the
following skin properties to dynamically skin the pop-up icon:
Property
openDateUp
openDateDown
openDateOver
openDateDisabled
To create movie clip symbols for DateField 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 DateField Assets folder to the library for your document.
Expand the DateField Assets folder in the library of your document.
4.
370
Chapter 6: Components Dictionary
Description
The month name.
The days of the week.
Today's date.
"Using skins with the DateChooser component" on page
Description
The up state of the pop-up icon.
The down state of the pop-up icon.
The over state of the pop-up icon.
The disabled state of the pop-up icon.
"About themes" on page
"About skinning components" on page
77.
80. For
"RectBorder class"
353.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents