<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: My best practice for MVC with Adobe Flex3	</title>
	<atom:link href="https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/</link>
	<description>Developer • YouTuber • Blogger</description>
	<lastBuildDate>Sun, 18 Mar 2012 10:26:12 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Vikram		</title>
		<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/#comment-23547</link>

		<dc:creator><![CDATA[Vikram]]></dc:creator>
		<pubDate>Sun, 18 Mar 2012 10:26:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.timo-ernst.net/?p=1946#comment-23547</guid>

					<description><![CDATA[Nice work and simply superb.Thank you for sharing such a great example.]]></description>
			<content:encoded><![CDATA[<p>Nice work and simply superb.Thank you for sharing such a great example.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Amit Mathur		</title>
		<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/#comment-18438</link>

		<dc:creator><![CDATA[Amit Mathur]]></dc:creator>
		<pubDate>Fri, 11 Nov 2011 20:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.timo-ernst.net/?p=1946#comment-18438</guid>

					<description><![CDATA[Really awesome.I was looking for this.Thanks...]]></description>
			<content:encoded><![CDATA[<p>Really awesome.I was looking for this.Thanks&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: buddy		</title>
		<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/#comment-15661</link>

		<dc:creator><![CDATA[buddy]]></dc:creator>
		<pubDate>Sat, 09 Jul 2011 13:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.timo-ernst.net/?p=1946#comment-15661</guid>

					<description><![CDATA[Very nice and implemented in an easy manner,,,Great]]></description>
			<content:encoded><![CDATA[<p>Very nice and implemented in an easy manner,,,Great</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Timo		</title>
		<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/#comment-13683</link>

		<dc:creator><![CDATA[Timo]]></dc:creator>
		<pubDate>Thu, 24 Feb 2011 04:26:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.timo-ernst.net/?p=1946#comment-13683</guid>

					<description><![CDATA[&lt;a href=&quot;#comment-12954&quot; rel=&quot;nofollow&quot;&gt;@Ned&lt;/a&gt; Thank you and good luck with your project ;-)]]></description>
			<content:encoded><![CDATA[<p><a href="#comment-12954" rel="nofollow">@Ned</a> Thank you and good luck with your project ;-)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ned		</title>
		<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/#comment-12954</link>

		<dc:creator><![CDATA[Ned]]></dc:creator>
		<pubDate>Sat, 25 Dec 2010 06:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.timo-ernst.net/?p=1946#comment-12954</guid>

					<description><![CDATA[First off, I would like to thank you for this simple but very effective design approach to flex. I have tried honestly about a hand full of flex MVC framework from mate to robot legs. but I like the idea of not depending on any third part library code. coming from a Java development background I can say that this approach fits my thinking pattern more closely, well done pal. By the way I am very new to Flex and have been given a huge project to take on. You have set the path for me that I wish to take.

keep up the good work!]]></description>
			<content:encoded><![CDATA[<p>First off, I would like to thank you for this simple but very effective design approach to flex. I have tried honestly about a hand full of flex MVC framework from mate to robot legs. but I like the idea of not depending on any third part library code. coming from a Java development background I can say that this approach fits my thinking pattern more closely, well done pal. By the way I am very new to Flex and have been given a huge project to take on. You have set the path for me that I wish to take.</p>
<p>keep up the good work!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Timo		</title>
		<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/#comment-12376</link>

		<dc:creator><![CDATA[Timo]]></dc:creator>
		<pubDate>Mon, 01 Nov 2010 19:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.timo-ernst.net/?p=1946#comment-12376</guid>

					<description><![CDATA[Yes and it&#039;s actually pretty simple.

You just have to set one of the references to null, for example controller=null (in the view). Then, the garbage collector will remove the controller from memory unless there is another reference to it somewhere in your program (hello, memory leaks! :-)).
Same goes for view=null (in the controller).

If you don&#039;t like this concept of two-way referencing you could also remove one of them:

The reference of controller-&gt;view is unavoidable. Every view component should have a controller.

The other way round is redundant in most cases and can thus be omitted.
It is &quot;best practice&quot; anyway.

The only reason why a view component would need a reference to its controller is that it needs to call certain methods of it.
Without a reference to the controller, you could fire custom events which are then caught by the controller.
This concept of loose coupling is a lot better than the hard-wired way of using 2-way references.

&lt;strong&gt;In a nutshell:&lt;/strong&gt; (Best practice)
- Give every view a controller, so the controller can access the properties and methods of your view.
- Don&#039;t create a reference back!
- Instead, define events which are being fired by the view component and then caught by the controller.

I must admit that I didn&#039;t think of that when I wrote this article :-)]]></description>
			<content:encoded><![CDATA[<p>Yes and it&#8217;s actually pretty simple.</p>
<p>You just have to set one of the references to null, for example controller=null (in the view). Then, the garbage collector will remove the controller from memory unless there is another reference to it somewhere in your program (hello, memory leaks! :-)).<br />
Same goes for view=null (in the controller).</p>
<p>If you don&#8217;t like this concept of two-way referencing you could also remove one of them:</p>
<p>The reference of controller->view is unavoidable. Every view component should have a controller.</p>
<p>The other way round is redundant in most cases and can thus be omitted.<br />
It is &#8220;best practice&#8221; anyway.</p>
<p>The only reason why a view component would need a reference to its controller is that it needs to call certain methods of it.<br />
Without a reference to the controller, you could fire custom events which are then caught by the controller.<br />
This concept of loose coupling is a lot better than the hard-wired way of using 2-way references.</p>
<p><strong>In a nutshell:</strong> (Best practice)<br />
&#8211; Give every view a controller, so the controller can access the properties and methods of your view.<br />
&#8211; Don&#8217;t create a reference back!<br />
&#8211; Instead, define events which are being fired by the view component and then caught by the controller.</p>
<p>I must admit that I didn&#8217;t think of that when I wrote this article :-)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alex		</title>
		<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/#comment-12373</link>

		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Mon, 01 Nov 2010 16:55:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.timo-ernst.net/?p=1946#comment-12373</guid>

					<description><![CDATA[There&#039;s only one problem ....
you are referencing the controller in the view (where it&#039;s instantiated) and the view in the controller (in your constructor).
This causes the garbage collector to never get rid of one or the other.
I&#039;m building a complex application using modules, and I&#039;m facing this very same problem. Any suggestion?]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s only one problem &#8230;.<br />
you are referencing the controller in the view (where it&#8217;s instantiated) and the view in the controller (in your constructor).<br />
This causes the garbage collector to never get rid of one or the other.<br />
I&#8217;m building a complex application using modules, and I&#8217;m facing this very same problem. Any suggestion?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Timo		</title>
		<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/#comment-11811</link>

		<dc:creator><![CDATA[Timo]]></dc:creator>
		<pubDate>Fri, 10 Sep 2010 15:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.timo-ernst.net/?p=1946#comment-11811</guid>

					<description><![CDATA[You are welcome! I am glad that I was able to explain something easy in a simple way. Don&#039;t know why some people like to make things more complicated than they are.]]></description>
			<content:encoded><![CDATA[<p>You are welcome! I am glad that I was able to explain something easy in a simple way. Don&#8217;t know why some people like to make things more complicated than they are.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: fer		</title>
		<link>https://www.timo-ernst.net/blog/2010/03/28/my-best-practice-for-mvc-with-adobe-flex/#comment-11810</link>

		<dc:creator><![CDATA[fer]]></dc:creator>
		<pubDate>Fri, 10 Sep 2010 15:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.timo-ernst.net/?p=1946#comment-11810</guid>

					<description><![CDATA[Thank you! I&#039;ve looking for something like this everywhere! and I finally find a simple application.
I don&#039;t know why, but everyone else is trying to explain things with some very complex applications...

Anyway.. you&#039;ve helped me a lot!  thanks!..]]></description>
			<content:encoded><![CDATA[<p>Thank you! I&#8217;ve looking for something like this everywhere! and I finally find a simple application.<br />
I don&#8217;t know why, but everyone else is trying to explain things with some very complex applications&#8230;</p>
<p>Anyway.. you&#8217;ve helped me a lot!  thanks!..</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
