Popa Mihai

PopaMihai.com – Flex, Flash, AIR and ActionScript articles and tutorials

Two-ways data binding in Flex 3

one comment

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.

Written by Popa Mihai

November 8th, 2010 at 12:47 pm

Posted in Flex

Tagged with , ,

One Response to 'Two-ways data binding in Flex 3'

Subscribe to comments with RSS or TrackBack to 'Two-ways data binding in Flex 3'.

  1. [...] Two-ways data binding in Flex 3 [...]

Leave a Reply