The
Date Field component is almost exactly the same as the Date Chooser (it
actually includes a Date Chooser component within itself.) The Date Field
allows you to easily add a pop-up DateChooser component linked to a text
field. The next example will show you how similar the Data Chooser and
Date Field components are.
Open up the FLA to the previous example (or data_chooser2.fla from
your downloads if you didn't save it).
Replace the DateChooser component with a DateField component (unfortunately
you can't do a Swap symbol from the Property Inspector (PI) and have
to manually delete the DateChooser and drag a DateField component on
Stage.)
Give the DateField component the same instance name that the DateChooser
had (myDateChooser). Notice that all of the properties visible in the
PI are the same as those of the DateChooser.
Without making any changes to the code, test the movie. It works!
You can play with the final version below.