MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 366

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

Advertisement

DateField component (Flash Professional only)
The DateField component is a nonselectable text field that displays the date with a calendar icon
on its right side. If no date has been selected, the text field is blank and the month of today's date
is displayed in the date chooser. When a user clicks anywhere inside the bounding box of the date
field, a date chooser pops up and displays the dates in the month of the selected date. When the
date chooser is open, users can use the month scroll buttons to scroll through months and years
and select a date. When a date is selected, the date chooser closes.
The live preview of the DateField does not reflect the values indicated by the Property inspector
or Component inspector during authoring, because it is a pop-up component that is not visible
during authoring.
Using the DateField component (Flash Professional only)
The DateField component can be used anywhere you want a user to select a date. For example,
you could use a DateField component in a hotel reservation system with certain dates selectable
and others disabled. You could also use the DateField component in an application that displays
current events, such as performances or meetings, when a user chooses a date.
DateField parameters
You can set the following authoring parameters for each DateField component instance in the
Property inspector or in the Component inspector:
monthNames
sets the month names that are displayed in the heading row of the calendar. The
value is an array and the default value is
"May", "June", "July", "August", "September", "October","November",
.
"December"]
dayNames
sets the names of the days of the week. The value is an array and the default value is
["S", "M", "T", "W", "T", "F", "S"]
firstDayOfWeek
array) is displayed in the first column of the date chooser. This property changes the display order
of the day columns.
The default value is 0, which is "S".
disabledDays
indicates the disabled days of the week. This parameter is an array and can have up
to seven values. The default value is
showToday
indicates whether to highlight today's date. The default value is
You can write ActionScript to control these and additional options for the DateField component
using its properties, methods, and events. For more information, see
Professional only)" on page
indicates which day of the week (0-6, 0 being the first element of
(an empty array).
[]
371.
Components Dictionary
["January", "February", "March", "April",
.
DateField component (Flash Professional only)
CHAPTER 6
dayNames
.
true
"DateField class (Flash
367

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