<?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"
	>
<channel>
	<title>Comments on: PureMVC Tutorial - Flex, PureMVC, Jabber and XIFF 3: Part 2 - Directory structure</title>
	<atom:link href="http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/</link>
	<description>Professional and reliable UK based Actionscript development</description>
	<pubDate>Tue, 09 Mar 2010 21:43:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: devdave</title>
		<link>http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-372</link>
		<dc:creator>devdave</dc:creator>
		<pubDate>Thu, 07 Jan 2010 08:17:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-372</guid>
		<description>Hi Maruish,

Officially speaking you are quite right - AS3 events are only used for communication between the view and mediator so they do belong in the view folder.

However, have a quick read of the end of part 7 of the tutorial.  After lots of development with PureMVC I have found that it is very often the case that the parameters I need to pass to a command are exactly the same as the attributes within the event that triggered it.

For example, clicking 'Login' in the login page dispatches an event LoginViewEvent.LOGIN with attributes 'username' and 'password'.  This gets picked up by the associated mediator which then dispatches a ApplicationFacade.LOGIN notification which triggers LoginCommand.  And what parameters does LoginCommand need?  'username' and 'password', of course; exactly the parameters within the event.  Therefore rather than creating untyped objects or extra value objects I opt for reusing the event class for the commands themselves, and this is the reason why the events folder is at the top level rather than in view.

I am fully aware that it can be argued that this breaks encapsulation, but I've never really seen a practical downside to this approach (so far!) and I think the benefits far outweigh the extra hassle of creating redundant objects to pass to commands.

Hope that makes sense!

Dave</description>
		<content:encoded><![CDATA[<p>Hi Maruish,</p>
<p>Officially speaking you are quite right - AS3 events are only used for communication between the view and mediator so they do belong in the view folder.</p>
<p>However, have a quick read of the end of part 7 of the tutorial.  After lots of development with PureMVC I have found that it is very often the case that the parameters I need to pass to a command are exactly the same as the attributes within the event that triggered it.</p>
<p>For example, clicking &#8216;Login&#8217; in the login page dispatches an event LoginViewEvent.LOGIN with attributes &#8216;username&#8217; and &#8216;password&#8217;.  This gets picked up by the associated mediator which then dispatches a ApplicationFacade.LOGIN notification which triggers LoginCommand.  And what parameters does LoginCommand need?  &#8216;username&#8217; and &#8216;password&#8217;, of course; exactly the parameters within the event.  Therefore rather than creating untyped objects or extra value objects I opt for reusing the event class for the commands themselves, and this is the reason why the events folder is at the top level rather than in view.</p>
<p>I am fully aware that it can be argued that this breaks encapsulation, but I&#8217;ve never really seen a practical downside to this approach (so far!) and I think the benefits far outweigh the extra hassle of creating redundant objects to pass to commands.</p>
<p>Hope that makes sense!</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mariush T.</title>
		<link>http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-369</link>
		<dc:creator>Mariush T.</dc:creator>
		<pubDate>Fri, 01 Jan 2010 23:57:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-369</guid>
		<description>Hi Dave,

AS3 events are related to the View tier so I would put 'events' folder into a 'view' folder. 

-org
--davekeen
---xiffer
----controller
----model
-----vo
-----enum
----view
-----components
-----events

&lt;a href="http://www.mariusht.com/blog/" rel="nofollow"&gt;Mariush T.&lt;/a&gt;
Freelance Flex Developer</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>AS3 events are related to the View tier so I would put &#8216;events&#8217; folder into a &#8216;view&#8217; folder. </p>
<p>-org<br />
&#8211;davekeen<br />
&#8212;xiffer<br />
&#8212;-controller<br />
&#8212;-model<br />
&#8212;&#8211;vo<br />
&#8212;&#8211;enum<br />
&#8212;-view<br />
&#8212;&#8211;components<br />
&#8212;&#8211;events</p>
<p><a href="http://www.mariusht.com/blog/" rel="nofollow">Mariush T.</a><br />
Freelance Flex Developer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sankar</title>
		<link>http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-367</link>
		<dc:creator>sankar</dc:creator>
		<pubDate>Mon, 28 Dec 2009 10:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-367</guid>
		<description>hi man great tutorial .but i need one more help.Now i am searching for pure MVC framework used on flash as3.if u have any application like that please send to my id sankar.niit@yahoo.co.in.Thanks in advance .please urgent</description>
		<content:encoded><![CDATA[<p>hi man great tutorial .but i need one more help.Now i am searching for pure MVC framework used on flash as3.if u have any application like that please send to my id <a href="mailto:sankar.niit@yahoo.co.in.Thanks">sankar.niit@yahoo.co.in.Thanks</a> in advance .please urgent</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devdave</title>
		<link>http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-309</link>
		<dc:creator>devdave</dc:creator>
		<pubDate>Sun, 20 Sep 2009 01:39:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-309</guid>
		<description>High praise indeed!  And extra fun because I managed to take a month to reply :)</description>
		<content:encoded><![CDATA[<p>High praise indeed!  And extra fun because I managed to take a month to reply <img src='http://www.actionscriptdeveloper.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mapDev</title>
		<link>http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-297</link>
		<dc:creator>mapDev</dc:creator>
		<pubDate>Thu, 13 Aug 2009 03:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-297</guid>
		<description>Hi Dave,

The tutorial is great.  Thanks!  I just happened across this while looking for info on purmvc.  More than you're tutorial, I love how you interact with people who comment.  Every question has a response... that's frickin' crazy.  You make me want to re-read every Dale Carnegie and John Maxwell book.  You truly are contemporarily-charismatic (creative commons mapDev).  Cheers.  You've got me hooked.</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>The tutorial is great.  Thanks!  I just happened across this while looking for info on purmvc.  More than you&#8217;re tutorial, I love how you interact with people who comment.  Every question has a response&#8230; that&#8217;s frickin&#8217; crazy.  You make me want to re-read every Dale Carnegie and John Maxwell book.  You truly are contemporarily-charismatic (creative commons mapDev).  Cheers.  You&#8217;ve got me hooked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramesh</title>
		<link>http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-245</link>
		<dc:creator>Ramesh</dc:creator>
		<pubDate>Sun, 29 Mar 2009 06:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-245</guid>
		<description>Very nice tutorial about MVC Framework. Thanks alot.</description>
		<content:encoded><![CDATA[<p>Very nice tutorial about MVC Framework. Thanks alot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devdave</title>
		<link>http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-191</link>
		<dc:creator>devdave</dc:creator>
		<pubDate>Thu, 08 Jan 2009 09:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-191</guid>
		<description>Hey Azziel,

You are 100% correct :)  Well spotted.  I've updated that in the tutorial.

Cheers,

Dave</description>
		<content:encoded><![CDATA[<p>Hey Azziel,</p>
<p>You are 100% correct <img src='http://www.actionscriptdeveloper.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Well spotted.  I&#8217;ve updated that in the tutorial.</p>
<p>Cheers,</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Azziel</title>
		<link>http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-187</link>
		<dc:creator>Azziel</dc:creator>
		<pubDate>Thu, 08 Jan 2009 09:19:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-2-directory-structure/#comment-187</guid>
		<description>hi dave

just want to clear some thing ( "right click on XIFFer and create org" ) if i follow this start i well and up w/ this

-Xiffer
-lib
-src
-org
--davekeen
---xiff
----cotroler
----evets
----model
----view
 
w/ is wrong.. right? because this should be like this

-Xiffer
-lib
-src
--org
---davekeen
----xiff
-----cotroler
-----evets
-----model
-----view

org should be inside src folder right?</description>
		<content:encoded><![CDATA[<p>hi dave</p>
<p>just want to clear some thing ( &#8220;right click on XIFFer and create org&#8221; ) if i follow this start i well and up w/ this</p>
<p>-Xiffer<br />
-lib<br />
-src<br />
-org<br />
&#8211;davekeen<br />
&#8212;xiff<br />
&#8212;-cotroler<br />
&#8212;-evets<br />
&#8212;-model<br />
&#8212;-view</p>
<p>w/ is wrong.. right? because this should be like this</p>
<p>-Xiffer<br />
-lib<br />
-src<br />
&#8211;org<br />
&#8212;davekeen<br />
&#8212;-xiff<br />
&#8212;&#8211;cotroler<br />
&#8212;&#8211;evets<br />
&#8212;&#8211;model<br />
&#8212;&#8211;view</p>
<p>org should be inside src folder right?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
