<?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: Flash Remoting in AS2: RelayResponder2	</title>
	<atom:link href="https://jessewarden.com/2004/12/flash-remoting-in-as2-relayresponder2.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2004/12/flash-remoting-in-as2-relayresponder2.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Thu, 17 Mar 2005 19:59:32 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2004/12/flash-remoting-in-as2-relayresponder2.html/comment-page-1#comment-2188</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Thu, 17 Mar 2005 19:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=676#comment-2188</guid>

					<description><![CDATA[Typically what I do is use some AS2 modifications of my Remoting queue.  It merely queues up Remoting calls so I can see them happen 1 after the other, and if 1 messes up, I can see which one it is.  This also ensures I get timeouts since there are rare cases where onFault/onStatus doesn&#039;t get called.

Seondly, yes, I&#039;ll have a Proxy class.  First is a DataAccess class.  This has all the Remoting logic, and ties in with the Model/ValueObjects passed in form the server (Java or PHP or .NET).  It&#039;ll generate events when it gets data back from the server.  You MUST pick up the data from exposed public properties (getter/setters).  Since the DataAccess knows how it&#039;s really handled, it only exposes a generic type to the application in case something changes (switch from PHP to Java, or changed array to recordset).  The Proxy class is merely a global class; global in that it&#039;s the main Model in Flash terms, and this Proxy class implements your standard &#039;login&#039;, &#039;getUserData&#039; etc.  Whether or not those methods are actually implemented on the server doens&#039;t matter.  The point here is I can either call methods to update my data, or get responses.  This Proxy class could also be your DataAccess class; depends on how tightly coupled you want things to be.  In cases where FLash is merely displaying data, this is typically how I&#039;ll do it because all I do is:

- get a RecordSet/DataSet from the server
- tie this model object to a View (say a DataGrid via the Controller)
- any time the data updates, it generates a model changed, which in turn updates the View (DataGrid)

This update can be triggered by a new RecordSet from the server, a DataAccess class actually generating the event, or the Controller calling it manually.


]]></description>
			<content:encoded><![CDATA[<p>Typically what I do is use some AS2 modifications of my Remoting queue.  It merely queues up Remoting calls so I can see them happen 1 after the other, and if 1 messes up, I can see which one it is.  This also ensures I get timeouts since there are rare cases where onFault/onStatus doesn&#8217;t get called.</p>
<p>Seondly, yes, I&#8217;ll have a Proxy class.  First is a DataAccess class.  This has all the Remoting logic, and ties in with the Model/ValueObjects passed in form the server (Java or PHP or .NET).  It&#8217;ll generate events when it gets data back from the server.  You MUST pick up the data from exposed public properties (getter/setters).  Since the DataAccess knows how it&#8217;s really handled, it only exposes a generic type to the application in case something changes (switch from PHP to Java, or changed array to recordset).  The Proxy class is merely a global class; global in that it&#8217;s the main Model in Flash terms, and this Proxy class implements your standard &#8216;login&#8217;, &#8216;getUserData&#8217; etc.  Whether or not those methods are actually implemented on the server doens&#8217;t matter.  The point here is I can either call methods to update my data, or get responses.  This Proxy class could also be your DataAccess class; depends on how tightly coupled you want things to be.  In cases where FLash is merely displaying data, this is typically how I&#8217;ll do it because all I do is:</p>
<p>&#8211; get a RecordSet/DataSet from the server<br />
&#8211; tie this model object to a View (say a DataGrid via the Controller)<br />
&#8211; any time the data updates, it generates a model changed, which in turn updates the View (DataGrid)</p>
<p>This update can be triggered by a new RecordSet from the server, a DataAccess class actually generating the event, or the Controller calling it manually.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joe		</title>
		<link>https://jessewarden.com/2004/12/flash-remoting-in-as2-relayresponder2.html/comment-page-1#comment-2187</link>

		<dc:creator><![CDATA[Joe]]></dc:creator>
		<pubDate>Thu, 17 Mar 2005 19:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=676#comment-2187</guid>

					<description><![CDATA[Flash remoting help seems to be few and far between.  Especially when trying to use / learn AS2 with remoting.  

Hopefully you guys can help me with a question related to the above topic.

I would like to create a central class for all the remoting services..  Example:  I have a service that returns a custom java object.  This object my be needed in several places in the app.  So I don&#039;t want to create a connection and everything each time I need this data.  If I place the service in its own class I&#039;m having alot of trouble returning the result to the calling class.  Any suggestions?  Some people call this a service proxy.   Thanks!]]></description>
			<content:encoded><![CDATA[<p>Flash remoting help seems to be few and far between.  Especially when trying to use / learn AS2 with remoting.  </p>
<p>Hopefully you guys can help me with a question related to the above topic.</p>
<p>I would like to create a central class for all the remoting services..  Example:  I have a service that returns a custom java object.  This object my be needed in several places in the app.  So I don&#8217;t want to create a connection and everything each time I need this data.  If I place the service in its own class I&#8217;m having alot of trouble returning the result to the calling class.  Any suggestions?  Some people call this a service proxy.   Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2004/12/flash-remoting-in-as2-relayresponder2.html/comment-page-1#comment-2186</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Mon, 28 Feb 2005 14:26:28 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=676#comment-2186</guid>

					<description><![CDATA[You mean like VB6 static variables?  Naw... the onFault/onResult are passing in what the webservice sends back.  Unless you intercept those messages, no go.

What problem are you trying to solve?  If you can&#039;t have the webservice return what you need, is it merely a client problem remembering context of the call?  Like, &#039;I need to know this call has this ID...&#039; type of deal?  Is that why you want the result to have some data?]]></description>
			<content:encoded><![CDATA[<p>You mean like VB6 static variables?  Naw&#8230; the onFault/onResult are passing in what the webservice sends back.  Unless you intercept those messages, no go.</p>
<p>What problem are you trying to solve?  If you can&#8217;t have the webservice return what you need, is it merely a client problem remembering context of the call?  Like, &#8216;I need to know this call has this ID&#8230;&#8217; type of deal?  Is that why you want the result to have some data?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aran Rhee		</title>
		<link>https://jessewarden.com/2004/12/flash-remoting-in-as2-relayresponder2.html/comment-page-1#comment-2185</link>

		<dc:creator><![CDATA[Aran Rhee]]></dc:creator>
		<pubDate>Mon, 28 Feb 2005 08:26:53 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=676#comment-2185</guid>

					<description><![CDATA[Jesse.

Prob. not the exact right place to post, but thought I&#039;d try anyway, seeing as I need a higher brain source :)

Is there anyway to pass arguments into the onResult and onFault functions from a relayResponder? I know a resultEvent and faultEvent object get passed respectively, but what if you wanted to pass custom params to the functions as well?

e.g. 

pc.responder = new RelayResponder2(this, getSome_Result(aNum, aVar2), gen_Fault());]]></description>
			<content:encoded><![CDATA[<p>Jesse.</p>
<p>Prob. not the exact right place to post, but thought I&#8217;d try anyway, seeing as I need a higher brain source :)</p>
<p>Is there anyway to pass arguments into the onResult and onFault functions from a relayResponder? I know a resultEvent and faultEvent object get passed respectively, but what if you wanted to pass custom params to the functions as well?</p>
<p>e.g. </p>
<p>pc.responder = new RelayResponder2(this, getSome_Result(aNum, aVar2), gen_Fault());</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
