How can I watermark a DateField control in Flex 4?
问题 I would like to know how to make a DateField control with a watermark. I want to set the prompt/watermark text from MXML like this one: <mx:DateField id="id_date" propmt="Select date" /> 回答1: Use this <mx:DateField id="df" text="Select Date" focusIn="df.text=''" /> OR Refer This Blog for custom datefield component WaterMarkDateField 回答2: Its Quite Simple by using the creation complete handler <mx:DateField id="sample" creationComplete="sample_creationCompleteHandler(event)"/> set the sample