DateField.close()

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX Professional 2004.

Usage

dateFieldInstance.close()

Returns

Nothing.

Description

Method; closes the pop-up menu.

Example

The following code closes the date chooser pop-up of the my_df date field instance when the button my_btn is clicked:

//Create listener object.
var btnListener:Object = new Object();
btnListener.click = function() {
   my_df.close();
};

//Add Button listener.
my_btn.addEventListener("click", btnListener);