Mega Code Archive

 
Categories / Flex / Data Model
 

Binding a source property to more than one destination property

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">   <mx:Model id="mod1">     <data>       <part>{input1.text}</part>     </data>   </mx:Model>   <mx:Model id="mod2">     <data>       <part>{input1.text}</part>     </data>   </mx:Model>   <mx:TextInput id="input1" text="Hello" />   <mx:Label text="{mod1.part}" />   <mx:Label text="{mod2.part}" /> </mx:Application>