Search code examples
actionscript-3apache-flexflash-builder

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" />

Solution

  • Use this

    <mx:DateField id="df" text="Select Date"  focusIn="df.text=''" />
    

    OR Refer This Blog for custom datefield component
    WaterMarkDateField