<?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 5 - Model &#38; Proxy</title>
	<atom:link href="http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/</link>
	<description>Professional and reliable Actionscript development</description>
	<pubDate>Mon, 06 Feb 2012 00:25:10 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: devdave</title>
		<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-712</link>
		<dc:creator>devdave</dc:creator>
		<pubDate>Wed, 27 Jul 2011 09:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-712</guid>
		<description>Hey Ben,

I'm afraid that I haven't used the new XIFF library (to be honest I didn't even know there was one :) ), so its very possible that its changed.

However, I doubt it will have changed too much so you can probably hack the example code to work with the new library without much difficulty.

Good luck!

Dave</description>
		<content:encoded><![CDATA[<p>Hey Ben,</p>
<p>I&#8217;m afraid that I haven&#8217;t used the new XIFF library (to be honest I didn&#8217;t even know there was one <img src='http://www.actionscriptfreelancer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ), so its very possible that its changed.</p>
<p>However, I doubt it will have changed too much so you can probably hack the example code to work with the new library without much difficulty.</p>
<p>Good luck!</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-702</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Fri, 03 Jun 2011 19:46:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-702</guid>
		<description>Hi there from Germany! Glad i founfd "you" ;)
Really made my day with this tutorial, for getting startet with my own little jabber client via AS3... thanx for the great work!

BUT, am i to dumb or is there no more XMPPSocketConnection class in the XIFF 3.0 library?! havent got that deep into it right now... is it changed?

Cheers, Ben</description>
		<content:encoded><![CDATA[<p>Hi there from Germany! Glad i founfd &#8220;you&#8221; <img src='http://www.actionscriptfreelancer.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Really made my day with this tutorial, for getting startet with my own little jabber client via AS3&#8230; thanx for the great work!</p>
<p>BUT, am i to dumb or is there no more XMPPSocketConnection class in the XIFF 3.0 library?! havent got that deep into it right now&#8230; is it changed?</p>
<p>Cheers, Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devdave</title>
		<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-673</link>
		<dc:creator>devdave</dc:creator>
		<pubDate>Mon, 31 Jan 2011 17:15:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-673</guid>
		<description>Hey Robin,

You are 100% correct; the best way to do this would be to have an interface on the XMPP model.  For the sake of brevity in the tutorial I didn't do this, but its the best way to go.

I have recently started using RobotLegs which handles mapping of Models (and other things) to interfaces in a brilliant way.  I would recommend checking it out if you are interested.

Cheers,

Dave</description>
		<content:encoded><![CDATA[<p>Hey Robin,</p>
<p>You are 100% correct; the best way to do this would be to have an interface on the XMPP model.  For the sake of brevity in the tutorial I didn&#8217;t do this, but its the best way to go.</p>
<p>I have recently started using RobotLegs which handles mapping of Models (and other things) to interfaces in a brilliant way.  I would recommend checking it out if you are interested.</p>
<p>Cheers,</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin Szemeti</title>
		<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-663</link>
		<dc:creator>Robin Szemeti</dc:creator>
		<pubDate>Sat, 11 Dec 2010 14:44:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-663</guid>
		<description>Hi Dave,

Great writeup, I was looking for a framework to use with Flash, and this tutorial encouraged me to try PureMVC and I have to say it works very well so far. As its my first time workign with Flash I fell down a few holes (hint: if putting views in a TabNavigator or other hidden layout, set creationPolicy=all or your mediators get passed null instances of the view)

Anyway .. back to a question on the structure ... Everyting seems to work for me in the way you have set the project up, excpet for one small niggle .. I can't seem to get comfortable with the commands calling up an instance of the xmpp object to talk to ... to my mind, they should be decoupled from the implementation of the chatclient model .. through either an interface or a wrapper class. I should be able to swap my xmpp model for a newFunkyChatProtocol model without any change to the app or its command structure ...

I think .. anyway ...  but there again I often get confused :)</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>Great writeup, I was looking for a framework to use with Flash, and this tutorial encouraged me to try PureMVC and I have to say it works very well so far. As its my first time workign with Flash I fell down a few holes (hint: if putting views in a TabNavigator or other hidden layout, set creationPolicy=all or your mediators get passed null instances of the view)</p>
<p>Anyway .. back to a question on the structure &#8230; Everyting seems to work for me in the way you have set the project up, excpet for one small niggle .. I can&#8217;t seem to get comfortable with the commands calling up an instance of the xmpp object to talk to &#8230; to my mind, they should be decoupled from the implementation of the chatclient model .. through either an interface or a wrapper class. I should be able to swap my xmpp model for a newFunkyChatProtocol model without any change to the app or its command structure &#8230;</p>
<p>I think .. anyway &#8230;  but there again I often get confused <img src='http://www.actionscriptfreelancer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nelson</title>
		<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-567</link>
		<dc:creator>Nelson</dc:creator>
		<pubDate>Sun, 01 Aug 2010 15:34:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-567</guid>
		<description>Actually,
import org.nzhang.gossamer.model.*
might be a better idea.</description>
		<content:encoded><![CDATA[<p>Actually,<br />
import org.nzhang.gossamer.model.*<br />
might be a better idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nelson</title>
		<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-566</link>
		<dc:creator>Nelson</dc:creator>
		<pubDate>Sun, 01 Aug 2010 15:34:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-566</guid>
		<description>Hey there, great tutorial! I'm just getting started working with XMPP and the dearth of documentation online is disheartening, but your tutorial is a godsend.

One thing I think you might have missed is to add
import org.davekeen.xiffer.model.XMPPProxy
near the start of StartupCommand.as - trying to build the project without it results in "Error: Call to a possibly undefined XMPPProxy" after registering the new proxy. 

Other than that, works like a charm!</description>
		<content:encoded><![CDATA[<p>Hey there, great tutorial! I&#8217;m just getting started working with XMPP and the dearth of documentation online is disheartening, but your tutorial is a godsend.</p>
<p>One thing I think you might have missed is to add<br />
import org.davekeen.xiffer.model.XMPPProxy<br />
near the start of StartupCommand.as - trying to build the project without it results in &#8220;Error: Call to a possibly undefined XMPPProxy&#8221; after registering the new proxy. </p>
<p>Other than that, works like a charm!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tahir Alvi</title>
		<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-402</link>
		<dc:creator>Tahir Alvi</dc:creator>
		<pubDate>Tue, 23 Mar 2010 11:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-402</guid>
		<description>i create a proxy and when i registers it in start command it comes with a lot of errors.</description>
		<content:encoded><![CDATA[<p>i create a proxy and when i registers it in start command it comes with a lot of errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: devdave</title>
		<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-247</link>
		<dc:creator>devdave</dc:creator>
		<pubDate>Tue, 31 Mar 2009 08:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-247</guid>
		<description>Hey Will,

There aren't any hard and fast rules to this - its really up to you how you split up the proxies.  However, here are some things that I personally think about:

o If a proxy contains methods that operate on a specific logical concept then seperate it out.  For example, in an address book application all the methods to do with contact CRUD might be in ContactProxy and all the methods to do with import/export might be in ImportExportProxy.
o I often put things that access different remote services into their own proxies.  For example, if our Jabber application also got information about users via a web service these methods might well be in their own proxy.
o Sometimes there is a fairly direct map between the services in your proxy, delegate and backend so I try to keep these synchronised.  For example, if I have a large AMFPHP application I'll have UserProxy only calling methods in UserMethods.php, etc.  This means that the way the backend is compartmentalised sometimes dictates the way the proxies are split.
o Its often good to try and get all similar functionality into a single proxy for purposes of re-use.  I always try to split them up in such a way that if I decide that I want to use 'UserProxy' in a new application it contains everything to do with users.

But, when you get right down to it, split the proxies however you feel most comfortable - they are there for your convenience!

Hope that helps,

Dave</description>
		<content:encoded><![CDATA[<p>Hey Will,</p>
<p>There aren&#8217;t any hard and fast rules to this - its really up to you how you split up the proxies.  However, here are some things that I personally think about:</p>
<p>o If a proxy contains methods that operate on a specific logical concept then seperate it out.  For example, in an address book application all the methods to do with contact CRUD might be in ContactProxy and all the methods to do with import/export might be in ImportExportProxy.<br />
o I often put things that access different remote services into their own proxies.  For example, if our Jabber application also got information about users via a web service these methods might well be in their own proxy.<br />
o Sometimes there is a fairly direct map between the services in your proxy, delegate and backend so I try to keep these synchronised.  For example, if I have a large AMFPHP application I&#8217;ll have UserProxy only calling methods in UserMethods.php, etc.  This means that the way the backend is compartmentalised sometimes dictates the way the proxies are split.<br />
o Its often good to try and get all similar functionality into a single proxy for purposes of re-use.  I always try to split them up in such a way that if I decide that I want to use &#8216;UserProxy&#8217; in a new application it contains everything to do with users.</p>
<p>But, when you get right down to it, split the proxies however you feel most comfortable - they are there for your convenience!</p>
<p>Hope that helps,</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.actionscriptfreelancer.com/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-241</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Wed, 25 Mar 2009 17:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-part-5-model-proxy/#comment-241</guid>
		<description>I'm confused about proxies. I want to continue to use MVC outside of the XMPP/chat features of my application. So for my non-xmpp functions, should I create a proxy for these? Or when do you decide you need to create another proxy?</description>
		<content:encoded><![CDATA[<p>I&#8217;m confused about proxies. I want to continue to use MVC outside of the XMPP/chat features of my application. So for my non-xmpp functions, should I create a proxy for these? Or when do you decide you need to create another proxy?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

