<?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: Class Deserialization: OpenAMF &#038; Flashcom	</title>
	<atom:link href="https://jessewarden.com/2005/04/class-deserialization-openamf-flashcom.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2005/04/class-deserialization-openamf-flashcom.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Thu, 06 Nov 2008 05:17:19 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Plato		</title>
		<link>https://jessewarden.com/2005/04/class-deserialization-openamf-flashcom.html/comment-page-1#comment-133744</link>

		<dc:creator><![CDATA[Plato]]></dc:creator>
		<pubDate>Thu, 06 Nov 2008 05:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=787#comment-133744</guid>

					<description><![CDATA[agrees, but with this it can not be helped, it is in their blood]]></description>
			<content:encoded><![CDATA[<p>agrees, but with this it can not be helped, it is in their blood</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jason Nussbaum		</title>
		<link>https://jessewarden.com/2005/04/class-deserialization-openamf-flashcom.html/comment-page-1#comment-2539</link>

		<dc:creator><![CDATA[Jason Nussbaum]]></dc:creator>
		<pubDate>Wed, 01 Feb 2006 16:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=787#comment-2539</guid>

					<description><![CDATA[I&#039;m only running into this issue now, so hadn&#039;t seen this thread before, but...
Couldn&#039;t you use the same &#039;workaround&#039; that UIComponent uses for handling clip parameters? That would solve it (and, actually, I think it&#039;s exactly the same problem).

I&#039;ll have to give it a try and post my results...


]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m only running into this issue now, so hadn&#8217;t seen this thread before, but&#8230;<br />
Couldn&#8217;t you use the same &#8216;workaround&#8217; that UIComponent uses for handling clip parameters? That would solve it (and, actually, I think it&#8217;s exactly the same problem).</p>
<p>I&#8217;ll have to give it a try and post my results&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2005/04/class-deserialization-openamf-flashcom.html/comment-page-1#comment-2538</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Tue, 19 Apr 2005 21:33:24 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=787#comment-2538</guid>

					<description><![CDATA[It seems your constructor fires after all of your properties have their values set; I wasn&#039;t seeing this in my Flashcom examples last night, but Brian Lesser from the Flashcom list sent me a working example.  If it does work, I&#039;ll see if there isn&#039;t a way to set the privates during the constructor, thus having my getters work once the class is ready to be accessed.  Stay tuned....]]></description>
			<content:encoded><![CDATA[<p>It seems your constructor fires after all of your properties have their values set; I wasn&#8217;t seeing this in my Flashcom examples last night, but Brian Lesser from the Flashcom list sent me a working example.  If it does work, I&#8217;ll see if there isn&#8217;t a way to set the privates during the constructor, thus having my getters work once the class is ready to be accessed.  Stay tuned&#8230;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Patrick Mineault		</title>
		<link>https://jessewarden.com/2005/04/class-deserialization-openamf-flashcom.html/comment-page-1#comment-2537</link>

		<dc:creator><![CDATA[Patrick Mineault]]></dc:creator>
		<pubDate>Tue, 19 Apr 2005 21:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=787#comment-2537</guid>

					<description><![CDATA[I&#039;ve seen this also in some of the AMFPHP example files. I think a decent workaround is creating an init method for that object, and running it immediately after you receive the object in the result event. This init method can transpose the variables to getters/setters.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen this also in some of the AMFPHP example files. I think a decent workaround is creating an init method for that object, and running it immediately after you receive the object in the result event. This init method can transpose the variables to getters/setters.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2005/04/class-deserialization-openamf-flashcom.html/comment-page-1#comment-2536</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Tue, 19 Apr 2005 21:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=787#comment-2536</guid>

					<description><![CDATA[Vanilla, like:

var o = {};
o.prop = &#039;value&#039;;

That&#039;s an AS1 vanilla object.  You could also do:

var o:Object = {};

or:

var o:Object = new Object();

Either way, if you trace it out:

trace(o.__proto__ == Object.prototype); // true

What I think Flash does when it&#039;s deserializing your class from the AMF packets is taking this instance, and going:

o.__proto__ = YourClass.prototype;

Where YourClass is what you registered too up top in your code:

Object.registerClass(&#039;YourClass&#039;, YourClass);

If Java sends a &#039;YourClass&#039; class, then Flash then knows to map it to a YourClass, an ActionScript class.]]></description>
			<content:encoded><![CDATA[<p>Vanilla, like:</p>
<p>var o = {};<br />
o.prop = &#8216;value&#8217;;</p>
<p>That&#8217;s an AS1 vanilla object.  You could also do:</p>
<p>var o:Object = {};</p>
<p>or:</p>
<p>var o:Object = new Object();</p>
<p>Either way, if you trace it out:</p>
<p>trace(o.__proto__ == Object.prototype); // true</p>
<p>What I think Flash does when it&#8217;s deserializing your class from the AMF packets is taking this instance, and going:</p>
<p>o.__proto__ = YourClass.prototype;</p>
<p>Where YourClass is what you registered too up top in your code:</p>
<p>Object.registerClass(&#8216;YourClass&#8217;, YourClass);</p>
<p>If Java sends a &#8216;YourClass&#8217; class, then Flash then knows to map it to a YourClass, an ActionScript class.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
