Example
The following code closes the date chooser pop-up of the
button
is clicked:
my_btn
//Create listener object.
var btnListener:Object = new Object();
btnListener.click = function() {
my_df.close();
};
//Add Button listener.
my_btn.addEventListener("click", btnListener);
DateField.close
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX Professional 2004.
Usage
Usage 1:
var listenerObject:Object = new Object();
listenerObject.close = function(eventObject:Object) {
// ...
};
dateFieldInstance.addEventListener("close", listenerObject);
Usage 2:
on (close) {
// ...
}
Description
Event; broadcast to all registered listeners when the DateChooser subcomponent closes after a
user clicks outside the icon or selects a date.
446
DateField component (Flash Professional only)
date field instance when the
my_df
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers