User Guide

448 DateField component (Flash Professional only)
DateField.dateFormatter
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
dateFieldInstance.dateFormatter
Description
Property; a function that formats the date to be displayed in the text field. The function must
receive a Date object as parameter, and return a string in the format to be displayed.
Example
The following example sets the function to return the format of the date to be displayed:
my_df.dateFormatter = function(d:Date){
return d.getFullYear()+"/ "+(d.getMonth()+1)+"/ "+d.getDate();
};
DateField.dayNames
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
dateFieldInstance.dayNames
Description
Property; an array containing the names of the days of the week. Sunday is the first day (at
index position 0) and the other day names follow in order. The default value is
["S", "M",
"T", "W", "T", "F", "S"]
.