Datechooser Component (Flash Professional Only) - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

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

Advertisement

DateChooser component (Flash Professional only)

The DateChooser component is a calendar that allows users to select a date. It has buttons that
allow users to scroll through months and click a date to select it. You can set parameters that
indicate the month and day names, the first day of the week, and disabled dates, as well as
highlighting the current date.
A live preview of each DateChooser instance reflects the values indicated by the Property
inspector or Component inspector during authoring.
Using the DateChooser component (Flash Professional only)
The DateChooser can be used anywhere you want a user to select a date. For example, you could
use a DateChooser component in a hotel reservation system with certain dates selectable and
others disabled. You could also use the DateChooser component in an application that displays
current events, such as performances or meetings, when a user chooses a date.
DateChooser parameters
You can set the following authoring parameters for each DateChooser 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.
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 DateChooser
component using its properties, methods, and events. For more information, see
class (Flash Professional only)" on page
Creating an application with the DateChooser component
The following procedure explains how to add a DateChooser component to an application while
authoring. In this example, the date chooser allows a user to pick a date for an airline reservation
system. All dates before October 15th must be disabled. Also, a range in December must be
disabled to create a holiday black-out period, and Mondays must be disabled.
350
Chapter 6: Components Dictionary
indicates which day of the week (0-6, 0 being the first element of the
(an empty array).
[]
["January", "February", "March", "April",
.
354.
CHAPTER 6
Components Dictionary
.
true
"DateChooser
dayNames

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?

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents