User Guide

DateField component (Flash Professional only) 379
DateField.disabledDays
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDF.disabledDays
Description
Property; an array indicating the disabled days of the week. All the dates in a month that fall on
the specified day are disabled. The elements of this array can have values between 0 (Sunday) and
6 (Saturday). The default value is
[] (an empty array).
Example
The following example disables Sundays and Saturdays so that users can select only weekdays:
myDF.disabledDays = [0, 6];
DateField.disabledRanges
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDF.disabledRanges
Description
Property; disables a single day or a range of days. This property is an array of objects. Each object
in the array must be either a Date object specifying a single day to disable, or an object containing
either or both of the properties
rangeStart and rangeEnd, each of whose value must be a Date
object. The
rangeStart and rangeEnd properties describe the boundaries of the date range. If
either property is omitted, the range is unbounded in that direction.
The default value of
disabledRanges is undefined.
Specify a full date when you define dates for the
disabledRanges property—for example, new
Date(2003,6,24)
rather than new Date(). If you dont specify a full date, the time returns as
00:00:00.