<?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: Type Mapping in AS3 : WRAP IT UP!</title>
	<atom:link href="http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/feed" rel="self" type="application/rss+xml" />
	<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up</link>
	<description>The spoils of the integration of PHP and ActionScript</description>
	<lastBuildDate>Wed, 19 May 2010 07:10:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Chris Robinson</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-2607</link>
		<dc:creator>Chris Robinson</dc:creator>
		<pubDate>Wed, 20 May 2009 11:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-2607</guid>
		<description>ok ive fixed it create an ArrayCollection class in php then send this back to flex, its worked for me, hope that helped you Lasse Moos.</description>
		<content:encoded><![CDATA[<p>ok ive fixed it create an ArrayCollection class in php then send this back to flex, its worked for me, hope that helped you Lasse Moos.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Robinson</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-2606</link>
		<dc:creator>Chris Robinson</dc:creator>
		<pubDate>Wed, 20 May 2009 09:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-2606</guid>
		<description>huumm i wish someone had helped us hear, i am still struggling to get a nested array to return it always returns as null, please help</description>
		<content:encoded><![CDATA[<p>huumm i wish someone had helped us hear, i am still struggling to get a nested array to return it always returns as null, please help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse Moos</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-2560</link>
		<dc:creator>Lasse Moos</dc:creator>
		<pubDate>Sun, 10 May 2009 13:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-2560</guid>
		<description>Alright, so I found the answer myself. In order for me to get correct classmapping I had to map like this in my AS class: http://pastebin.com/f1ee02071 and like this in my php class: http://pastebin.com/f6d021f18

Now I get correct type mapping in both charles and flex :)</description>
		<content:encoded><![CDATA[<p>Alright, so I found the answer myself. In order for me to get correct classmapping I had to map like this in my AS class: <a href="http://pastebin.com/f1ee02071" rel="nofollow">http://pastebin.com/f1ee02071</a> and like this in my php class: <a href="http://pastebin.com/f6d021f18" rel="nofollow">http://pastebin.com/f6d021f18</a></p>
<p>Now I get correct type mapping in both charles and flex <img src='http://wadearnold.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse Moos</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-2445</link>
		<dc:creator>Lasse Moos</dc:creator>
		<pubDate>Mon, 04 May 2009 14:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-2445</guid>
		<description>In amfphp my objects weren&#039;t nested?</description>
		<content:encoded><![CDATA[<p>In amfphp my objects weren&#8217;t nested?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse Moos</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-2343</link>
		<dc:creator>Lasse Moos</dc:creator>
		<pubDate>Mon, 27 Apr 2009 15:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-2343</guid>
		<description>Also I can&#039;t seem to use typecasting, I get an object back like this: http://i44.tinypic.com/zv4il5.jpg
Why is there a second object nested inside the ObjectProxy, should that be there?</description>
		<content:encoded><![CDATA[<p>Also I can&#8217;t seem to use typecasting, I get an object back like this: <a href="http://i44.tinypic.com/zv4il5.jpg" rel="nofollow">http://i44.tinypic.com/zv4il5.jpg</a><br />
Why is there a second object nested inside the ObjectProxy, should that be there?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse Moos</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-2342</link>
		<dc:creator>Lasse Moos</dc:creator>
		<pubDate>Mon, 27 Apr 2009 14:09:13 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-2342</guid>
		<description>I&#039;d like a final answer to this: Is there no way to have flex automatically type cast the received object? 
In charles I see that my objects are being returned as the correct class.</description>
		<content:encoded><![CDATA[<p>I&#8217;d like a final answer to this: Is there no way to have flex automatically type cast the received object?<br />
In charles I see that my objects are being returned as the correct class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Robinson</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-2231</link>
		<dc:creator>Chris Robinson</dc:creator>
		<pubDate>Sun, 19 Apr 2009 10:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-2231</guid>
		<description>please can you point me in the right direction for mapping the nested objects please. (any sample code would be appreciated)?</description>
		<content:encoded><![CDATA[<p>please can you point me in the right direction for mapping the nested objects please. (any sample code would be appreciated)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garth Braithwaite</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-357</link>
		<dc:creator>Garth Braithwaite</dc:creator>
		<pubDate>Thu, 30 Oct 2008 23:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-357</guid>
		<description>So for arrays of nested objects I should do a recursive function to type the children?</description>
		<content:encoded><![CDATA[<p>So for arrays of nested objects I should do a recursive function to type the children?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wadearnold</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-335</link>
		<dc:creator>wadearnold</dc:creator>
		<pubDate>Wed, 29 Oct 2008 15:12:15 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-335</guid>
		<description>@garth Because you would have to iterate through the returned result and apply it to a new ContactVO object. If you used the above code without class mapping you would get an error: 

Error #1009: Cannot access a property or method of a null object reference.

You would have to do things like

myContactVO.firstname = event.result.firstname;
myContactVO.lastname = event.result.lastname;

So this could be done on a pretty flat object such as what we have here... EXAMPLE... however once you start having nested objects in your data structure of different typed objects it becomes really beneficial.</description>
		<content:encoded><![CDATA[<p>@garth Because you would have to iterate through the returned result and apply it to a new ContactVO object. If you used the above code without class mapping you would get an error: </p>
<p>Error #1009: Cannot access a property or method of a null object reference.</p>
<p>You would have to do things like</p>
<p>myContactVO.firstname = event.result.firstname;<br />
myContactVO.lastname = event.result.lastname;</p>
<p>So this could be done on a pretty flat object such as what we have here&#8230; EXAMPLE&#8230; however once you start having nested objects in your data structure of different typed objects it becomes really beneficial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: diamondTearz</title>
		<link>http://wadearnold.com/blog/flash/amfphp/type-mapping-in-flex-wrap-it-up/comment-page-1#comment-334</link>
		<dc:creator>diamondTearz</dc:creator>
		<pubDate>Wed, 29 Oct 2008 14:00:41 +0000</pubDate>
		<guid isPermaLink="false">http://wadearnold.com/blog/?p=78#comment-334</guid>
		<description>@Garth-  I think it still saves us the ceremony of having to convert the received object to the desired type property by property.</description>
		<content:encoded><![CDATA[<p>@Garth-  I think it still saves us the ceremony of having to convert the received object to the desired type property by property.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
