Mega Code Archive

 
Categories / Flex / Components
 

Use one mx

tag along with curly brace syntax to bind the Label control's text to two different TextInput controls" src="http://www.rntsoft.com/Code/FlexImages/UseonemxBindingtagalongwithcurlybracesyntaxtobindtheLabelcontrolstexttotwodifferentTextInputcontrols.PNG"            <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">     <mx:Binding source="oneTextInput.text" destination="confusedLabel.text" />     <mx:TextInput id="oneTextInput" />     <mx:TextInput id="anotherTextInput" />     <mx:Label id="confusedLabel" text="{anotherTextInput.text}" /> </mx:Application>