<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flex 4 &#187; examples</title>
	<atom:link href="http://flex4.org/category/examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://flex4.org</link>
	<description>Flex 4 tutorials, examples, and thoughts by John Lindquist</description>
	<lastBuildDate>Wed, 24 Jun 2009 08:28:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Two-way Bindings</title>
		<link>http://flex4.org/2009/06/24/two-way-bindings/</link>
		<comments>http://flex4.org/2009/06/24/two-way-bindings/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 08:26:55 +0000</pubDate>
		<dc:creator>John Lindquist</dc:creator>
				<category><![CDATA[examples]]></category>

		<guid isPermaLink="false">http://flex4.org/?p=24</guid>
		<description><![CDATA[Binding between two properties in Flex 4 is insanely easy now. Instead of just using &#8220;{}&#8221;, now you can add an @ to make it go both ways: &#8220;@{}&#8221;. In this example, you&#8217;ll see the @ in the text property of the second TextArea which will two-way bind with the text property of the first [...]]]></description>
			<content:encoded><![CDATA[<p>Binding between two properties in Flex 4 is insanely easy now. Instead of just using &#8220;{}&#8221;, now you can add an @ to make it go both ways: &#8220;@{}&#8221;. In this example, you&#8217;ll see the @ in the text property of the second TextArea which will two-way bind with the text property of the first TextArea.</p>
<p>You can test this out by typing the the two TextAreas below:<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_TwoWayBinding_1752709146"
			class="flashmovie"
			width="540"
			height="400">
	<param name="movie" value="http://flex4.org/files/tutorials/twowaybinding/TwoWayBinding.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://flex4.org/files/tutorials/twowaybinding/TwoWayBinding.swf"
			name="fm_TwoWayBinding_1752709146"
			width="540"
			height="400">
	<!--<![endif]-->
		
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>s:Application 
	xmlns:fx=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span> 
	xmlns:s=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> 
	xmlns:mx=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/halo&quot;</span> 
	<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>s:layout<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;</span>s:VerticalLayout<span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>s:layout<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>s:TextArea 
		id=<span style="color: #ff0000;">&quot;firstTextField&quot;</span> 
		<span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> 
		<span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;50%&quot;</span>
		fontSize=<span style="color: #ff0000;">&quot;20&quot;</span>
		<span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>s:TextArea 
		id=<span style="color: #ff0000;">&quot;secondTextField&quot;</span> 
		<span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;@{firstTextField.text}&quot;</span> 
		<span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> 
		<span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;50%&quot;</span>
		<span style="color: #66cc66;">/&gt;</span>
<span style="color: #66cc66;">&lt;/</span>s:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://flex4.org/2009/06/24/two-way-bindings/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
