header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
krishna
Points:260
Posts:0

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?




1
Asley
Points: 0
Posts:0
5/25/2010 10:40:29 PM



you can use the change event of datefield to set the label.text=""

2
Nathan
Points: 0
Posts:0
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"/>



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 7+6 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions