MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual page 377

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

Advertisement

form.close = function(eventObj){
trace("PullDown Closed" + eventObj.target.selectedDate);
}
myDF.addEventListener("close", form);
DateField.dateFormatter
Availability
Flash Player 6 (6.0 79.0).
Edition
Flash MX Professional 2004.
Usage
myDF.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:
myDF.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
myDF.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
"T", "F", "S"]
Example
The following example changes the value of the fifth day of the week (Thursday) from "T" to
"R":
myDF.dayNames[4] = "R";
378
Chapter 6: Components Dictionary
.
["S", "M", "T", "W",

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