http://livedocs.adobe.com/flex/3/html/help.html?content=controls_12.html

while flex example shows how to assign a date into a text field
what if someone wanted to reuse the date function routine with 20 text
box's ...?

Could i pass a variable containing the name of the object to now use in
like so

  public function useDate(eventObj:CalendarLayoutChangeEvent,
MYVARIABLEPASSEDIN):void {

                 // Make sure selectedDate is not null.
                 if (eventObj.currentTarget.selectedDate == null) {
                     return;
                 }

                 composedatetext.text =
(eventObj.currentTarget.selectedDate.getMonth()+1) +
                     "/" + eventObj.currentTarget.selectedDate.getDate()
+
                     "/" +
eventObj.currentTarget.selectedDate.getFullYear();

                    MYVARIABLEGOES HERE.visible=false;

             }


Reply via email to