There are some cases where you could need that two controls in your application have the same value and be bound together. You can do that with Flex 3 by adding using this very simple example:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" backgroundColor="white"> <mx:TextInput id="txt1" text="{txt2.text}"/> <mx:TextInput id="txt2" text="{txt1.text}"/> </mx:Application> |
View Source is enabled in the above example. To view the source files right click on the swf and choose “View Source” from the context menu.
[...] Two-ways data binding in Flex 3 [...]
Data binding in Flex | Popa Mihai
8 Nov 10 at 12:54 pm