MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 385

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

Advertisement

DateField.selectableRange
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDF.selectableRange
Description
Property; sets a single selectable date or a range of selectable dates. The value of this property is an
object that consists of two Date objects named
properties designate the boundaries of the selectable date range. If only
rangeEnd
defined, all the dates after
before
rangeEnd
If you want to enable only a single day, you can use a single Date object as the value of
selectableRange
Specify a full date when you define dates—for example,
. If you don't specify a full date, the time returns as
Date()
The value of
DateField.selectedDate
The values of
DateField.displayedMonth
nearest last month in the selectable range if the current month falls outside the selectable range.
For example, if the current displayed month is August, and the selectable range is from June 2003
to July 2003, the displayed month will change to July 2003.
Example
The following example defines the selectable range as the dates between and including May 7 and
June 7:
myDF.selectableRange = {rangeStart: new Date(2001, 4, 7), rangeEnd: new
Date(2003, 5, 7)};
The following example defines the selectable range as the dates after and including May 7:
myDF.selectableRange = {rangeStart: new Date(2003, 4, 7)};
The following example defines the selectable range as the dates before and including June 7:
myDF.selectableRange = {rangeEnd: new Date(2003, 5, 7)};
The following example defines the selectable date as June 7 only:
myDF.selectableRange = new Date(2003, 5, 7);
386
Chapter 6: Components Dictionary
rangeStart
are enabled. The default value is
.
and
rangeStart
are enabled. If only
rangeEnd
undefined
new Date(2003,6,24)
00:00:00
is set to
if it falls outside the selectable range.
undefined
and
DateField.displayedYear
. The
rangeEnd
rangeStart
rangeStart
is defined, all the dates
.
rather than
.
are set to the
and
is
new

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