<?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: Scaling up EasyMVC as your Flex application grows (Part 1)</title>
	<atom:link href="http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/</link>
	<description>We design &#38; build outstanding websites, desktop and mobile software applications</description>
	<lastBuildDate>Tue, 08 Nov 2011 22:37:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: NdyT</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-681</link>
		<dc:creator>NdyT</dc:creator>
		<pubDate>Fri, 27 Mar 2009 20:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-681</guid>
		<description>my bad, didn&#039;t read the comments properly :

Comment:
-------------------
Hi Johan,
You can simply cast the event into your custom event. this is done as follows:
var customEvent:MyCustomEvent = MyCustomEvent(event);
Regards,
Jon
-------------------

it&#039;s indeed working well, but it&#039;s a little weird to cast like that.

Thanks</description>
		<content:encoded><![CDATA[<p>my bad, didn&#8217;t read the comments properly :</p>
<p>Comment:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Hi Johan,<br />
You can simply cast the event into your custom event. this is done as follows:<br />
var customEvent:MyCustomEvent = MyCustomEvent(event);<br />
Regards,<br />
Jon<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>it&#8217;s indeed working well, but it&#8217;s a little weird to cast like that.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NdyT</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-677</link>
		<dc:creator>NdyT</dc:creator>
		<pubDate>Fri, 27 Mar 2009 20:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-677</guid>
		<description>ok i get it.
but with this interface , it is not compatible with the previous article because of the type of the argument of the function execute(e:Event).

We had two function handle_joinRoom( event:JoinRoomEvent ) and handle_sendMessage( event:SendMessageEvent ) with different type of argument.

we can not factorise those function ....</description>
		<content:encoded><![CDATA[<p>ok i get it.<br />
but with this interface , it is not compatible with the previous article because of the type of the argument of the function execute(e:Event).</p>
<p>We had two function handle_joinRoom( event:JoinRoomEvent ) and handle_sendMessage( event:SendMessageEvent ) with different type of argument.</p>
<p>we can not factorise those function &#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NdyT</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-673</link>
		<dc:creator>NdyT</dc:creator>
		<pubDate>Wed, 25 Mar 2009 19:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-673</guid>
		<description>hi

i get the first article about easyMvc, but i dont get everything in this article
can you put source files to see how interface/controler/CountryChangedCommand class are separated ?

thanks</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>i get the first article about easyMvc, but i dont get everything in this article<br />
can you put source files to see how interface/controler/CountryChangedCommand class are separated ?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johan</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-629</link>
		<dc:creator>johan</dc:creator>
		<pubDate>Sun, 09 Mar 2008 22:52:37 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-629</guid>
		<description>Hi Jon

With EMVC where is the most approriate place to handle business logic? Command class or is it better to have a model object that handles this and updates its associated value object/s?</description>
		<content:encoded><![CDATA[<p>Hi Jon</p>
<p>With EMVC where is the most approriate place to handle business logic? Command class or is it better to have a model object that handles this and updates its associated value object/s?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johan</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-633</link>
		<dc:creator>johan</dc:creator>
		<pubDate>Fri, 07 Mar 2008 01:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-633</guid>
		<description>Thanks Jon - thanks for additional explanation. I got it now.</description>
		<content:encoded><![CDATA[<p>Thanks Jon &#8211; thanks for additional explanation. I got it now.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-637</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Thu, 06 Mar 2008 23:31:19 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-637</guid>
		<description>You are correct you use cmd.execute without parentheses as this passes the function rather than the result of calling the function which cmd.execute() would do. Functions in ECMAScript are treated as properties of a class (think how Javascript works) in AS3 (which is typed, a function is of type Function). The addEventLisener() method is inherited from the EventDispatcher class and expects the function that you want calling when the event you are listentng for is dispatched, passed to it as a parameter. Hope that helps.</description>
		<content:encoded><![CDATA[<p>You are correct you use cmd.execute without parentheses as this passes the function rather than the result of calling the function which cmd.execute() would do. Functions in ECMAScript are treated as properties of a class (think how Javascript works) in AS3 (which is typed, a function is of type Function). The addEventLisener() method is inherited from the EventDispatcher class and expects the function that you want calling when the event you are listentng for is dispatched, passed to it as a parameter. Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johan</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-641</link>
		<dc:creator>johan</dc:creator>
		<pubDate>Thu, 06 Mar 2008 22:03:01 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-641</guid>
		<description>Thanks Jon - I got it working but possibly by hack more than understanding.

I found that I had to use systemManager.addEventListener(eventType, cmd.execute) and not  systemManager.addEventListener(eventType, cmd.execute()) - notice in second case it is execute().

I must have a basic error in understanding as when calling the method execute() the errors are that it expects 1 argument and there is implicit cooercion of type void to unrelated type Function. That would make sense to me since the execute method expects event - execute(event:Event)

As a newbie I think I am missing something obvious. Suggestions appreciated.</description>
		<content:encoded><![CDATA[<p>Thanks Jon &#8211; I got it working but possibly by hack more than understanding.</p>
<p>I found that I had to use systemManager.addEventListener(eventType, cmd.execute) and not  systemManager.addEventListener(eventType, cmd.execute()) &#8211; notice in second case it is execute().</p>
<p>I must have a basic error in understanding as when calling the method execute() the errors are that it expects 1 argument and there is implicit cooercion of type void to unrelated type Function. That would make sense to me since the execute method expects event &#8211; execute(event:Event)</p>
<p>As a newbie I think I am missing something obvious. Suggestions appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-645</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Thu, 06 Mar 2008 08:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-645</guid>
		<description>Hi Johan,

You can simply cast the event into your custom event. this is done as follows:

var customEvent:MyCustomEvent = MyCustomEvent(event);

Regards,

Jon</description>
		<content:encoded><![CDATA[<p>Hi Johan,</p>
<p>You can simply cast the event into your custom event. this is done as follows:</p>
<p>var customEvent:MyCustomEvent = MyCustomEvent(event);</p>
<p>Regards,</p>
<p>Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: johan</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-649</link>
		<dc:creator>johan</dc:creator>
		<pubDate>Thu, 06 Mar 2008 07:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-649</guid>
		<description>Enjoying the series a lot. Keeping in mind I am a Flex novice can you explain how using commands would work if I have custom events? The problem I see is that my custom event class would have a different signature to the interface which is typed as Event.</description>
		<content:encoded><![CDATA[<p>Enjoying the series a lot. Keeping in mind I am a Flex novice can you explain how using commands would work if I have custom events? The problem I see is that my custom event class would have a different signature to the interface which is typed as Event.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.gotripod.com/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/comment-page-1/#comment-653</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Tue, 04 Mar 2008 22:54:12 +0000</pubDate>
		<guid isPermaLink="false">http://clockobj.co.uk/2008/01/21/scaling-up-easymvc-as-your-flex-application-grows-part-1/#comment-653</guid>
		<description>I have been asked why EasyMVC&#039;s controller extends UIComponent and wanted to clarify with this from Tom Bray: &quot;I extend UIComponent so I can listen for the ADDED_TO_STAGE event which lets me know when the systemManager is no longer null..., the amount of code in UIComponent doesn&#039;t concern me because it&#039;s already linked in to the compiled SWF because everything, including mx:Application extends it, Cairngorm&#039;s FrontController does the same thing&quot;

Thanks for the clarification Tom!

Jon</description>
		<content:encoded><![CDATA[<p>I have been asked why EasyMVC&#8217;s controller extends UIComponent and wanted to clarify with this from Tom Bray: &#8220;I extend UIComponent so I can listen for the ADDED_TO_STAGE event which lets me know when the systemManager is no longer null&#8230;, the amount of code in UIComponent doesn&#8217;t concern me because it&#8217;s already linked in to the compiled SWF because everything, including mx:Application extends it, Cairngorm&#8217;s FrontController does the same thing&#8221;</p>
<p>Thanks for the clarification Tom!</p>
<p>Jon</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- Quick Cache: failed to write cache. The cache/ directory is either non-existent ( and could not be created ) or it is not writable. -->
