5/25/2010 10:30:48 PM
Title:
datefield
Hi,
I have a two labels and one datefield
my question is whenever i change datefield , the labels will be empty , how to do it?
5/25/2010 10:40:29 PM
you can use the change event of datefield to set the label.text=""
5/26/2010 10:57:02 AM
this should work for you , It will make the label empty when you change the dateField
<mx:Script>
<![CDATA[
protected function datefield1_changeHandler(event:CalendarLayoutChangeEvent):void
{
label1.text="";
label2.text="";
}
]]>
</mx:Script>
<mx:DateField change="datefield1_changeHandler(event)">
</mx:DateField>
<mx:Label id="label1" text="label one" x="-3" y="52"/>
<mx:Label id="label2" text="label two" x="0" y="26"/>