<?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: Easy deep clone method made easier</title>
	<atom:link href="http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/</link>
	<description></description>
	<lastBuildDate>Sat, 04 Feb 2012 08:15:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: miron caius</title>
		<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/comment-page-1/#comment-96441</link>
		<dc:creator>miron caius</dc:creator>
		<pubDate>Mon, 05 Dec 2011 11:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.rozengain.com/blog/?p=252#comment-96441</guid>
		<description>Also to make it more generic, you should also add this:

var qualifiedClassName : String = getQualifiedClassName( new TestScore() ).replace( &quot;::&quot;, &quot;.&quot; );
			registerClassAlias( qualifiedClassName, getDefinitionByName( qualifiedClassName ) as Class );

the solution i posted above will have problems if you rename the class or move the class.</description>
		<content:encoded><![CDATA[<p>Also to make it more generic, you should also add this:</p>
<p>var qualifiedClassName : String = getQualifiedClassName( new TestScore() ).replace( &#8220;::&#8221;, &#8220;.&#8221; );<br />
			registerClassAlias( qualifiedClassName, getDefinitionByName( qualifiedClassName ) as Class );</p>
<p>the solution i posted above will have problems if you rename the class or move the class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miron caius</title>
		<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/comment-page-1/#comment-96438</link>
		<dc:creator>miron caius</dc:creator>
		<pubDate>Mon, 05 Dec 2011 11:22:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.rozengain.com/blog/?p=252#comment-96438</guid>
		<description>This solution has one downside. Is is very generic but if you have typed objects inside the parent object, they will be null. So in order to overcome this, each object should have a custom clone method.
For recursive cloning register all the other class aliases you have inside the parent object:

registerClassAlias( &quot;com.rozengain.cloning
.MyClass2&quot;, getDefinitionByName( &quot;com.rozengain.cloning
.MyClass2&quot; ) as Class );

registerClassAlias( &quot;com.rozengain.cloning
.MyClass3&quot;, getDefinitionByName( &quot;com.rozengain.cloning
.MyClass3&quot; ) as Class );

it will work with Arrays of typed objects as well.</description>
		<content:encoded><![CDATA[<p>This solution has one downside. Is is very generic but if you have typed objects inside the parent object, they will be null. So in order to overcome this, each object should have a custom clone method.<br />
For recursive cloning register all the other class aliases you have inside the parent object:</p>
<p>registerClassAlias( &#8220;com.rozengain.cloning<br />
.MyClass2&#8243;, getDefinitionByName( &#8220;com.rozengain.cloning<br />
.MyClass2&#8243; ) as Class );</p>
<p>registerClassAlias( &#8220;com.rozengain.cloning<br />
.MyClass3&#8243;, getDefinitionByName( &#8220;com.rozengain.cloning<br />
.MyClass3&#8243; ) as Class );</p>
<p>it will work with Arrays of typed objects as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy</title>
		<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/comment-page-1/#comment-29261</link>
		<dc:creator>Amy</dc:creator>
		<pubDate>Wed, 10 Feb 2010 19:00:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.rozengain.com/blog/?p=252#comment-29261</guid>
		<description>Hi there, I&#039;m very new to Actionscript and Flex and was wondering how you would use this example to clone an element and then add it as a child to a container in Flex? For example, I have a Flex4 group with some Graphic elements inside it, such as an 

How would I use this method to clone the ellipse graphic and add it as a child to the Group container that its source lives in? 

Thanks much.</description>
		<content:encoded><![CDATA[<p>Hi there, I&#8217;m very new to Actionscript and Flex and was wondering how you would use this example to clone an element and then add it as a child to a container in Flex? For example, I have a Flex4 group with some Graphic elements inside it, such as an </p>
<p>How would I use this method to clone the ellipse graphic and add it as a child to the Group container that its source lives in? </p>
<p>Thanks much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jahshuwaa</title>
		<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/comment-page-1/#comment-15360</link>
		<dc:creator>jahshuwaa</dc:creator>
		<pubDate>Mon, 04 May 2009 17:39:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.rozengain.com/blog/?p=252#comment-15360</guid>
		<description>@kris, I tested this morning with ClassB and ClassC custom class properties of my ClassA custom class. After cloning an instance of ClassA with the method above, I traced the qualifiedClassName of the clone&#039;s ClassB and ClassC properties. The traces successfully reported &quot;com.x.y.z.ClassB&quot; and &quot;com.x.y.z.ClassC&quot;. At least in the case of this example it _seems_ like custom class properties of the cloned class object instance do retain their class identities.</description>
		<content:encoded><![CDATA[<p>@kris, I tested this morning with ClassB and ClassC custom class properties of my ClassA custom class. After cloning an instance of ClassA with the method above, I traced the qualifiedClassName of the clone&#8217;s ClassB and ClassC properties. The traces successfully reported &#8220;com.x.y.z.ClassB&#8221; and &#8220;com.x.y.z.ClassC&#8221;. At least in the case of this example it _seems_ like custom class properties of the cloned class object instance do retain their class identities.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kris</title>
		<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/comment-page-1/#comment-14290</link>
		<dc:creator>kris</dc:creator>
		<pubDate>Fri, 17 Apr 2009 22:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.rozengain.com/blog/?p=252#comment-14290</guid>
		<description>hi.. uhm.. admin :)

what if one of your member properties are of a non-primitive type, or lets say of a second custom class? guess it fails due to the fact that it doesn&#039;t really _deep_ clone?

hehe now i thought about it for several minutes and got nothing productive to say. so i&#039;ll just submit this mean comment.</description>
		<content:encoded><![CDATA[<p>hi.. uhm.. admin <img src='http://www.rozengain.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>what if one of your member properties are of a non-primitive type, or lets say of a second custom class? guess it fails due to the fact that it doesn&#8217;t really _deep_ clone?</p>
<p>hehe now i thought about it for several minutes and got nothing productive to say. so i&#8217;ll just submit this mean comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bold Endeavours</title>
		<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/comment-page-1/#comment-12996</link>
		<dc:creator>Bold Endeavours</dc:creator>
		<pubDate>Wed, 25 Mar 2009 16:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.rozengain.com/blog/?p=252#comment-12996</guid>
		<description>So far any test results?</description>
		<content:encoded><![CDATA[<p>So far any test results?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: W.</title>
		<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/comment-page-1/#comment-11895</link>
		<dc:creator>W.</dc:creator>
		<pubDate>Thu, 19 Feb 2009 12:58:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.rozengain.com/blog/?p=252#comment-11895</guid>
		<description>fucking genius! :)</description>
		<content:encoded><![CDATA[<p>fucking genius! <img src='http://www.rozengain.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/comment-page-1/#comment-11893</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 19 Feb 2009 10:15:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.rozengain.com/blog/?p=252#comment-11893</guid>
		<description>Hey Jiri,
Good question. I haven&#039;t tested the performance yet, but I will do soon :)
Thanks
Dennis</description>
		<content:encoded><![CDATA[<p>Hey Jiri,<br />
Good question. I haven&#8217;t tested the performance yet, but I will do soon <img src='http://www.rozengain.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Thanks<br />
Dennis</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jiri</title>
		<link>http://www.rozengain.com/blog/2009/02/19/easy-deep-clone-method-made-easier/comment-page-1/#comment-11891</link>
		<dc:creator>jiri</dc:creator>
		<pubDate>Thu, 19 Feb 2009 09:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.rozengain.com/blog/?p=252#comment-11891</guid>
		<description>Is this an expensive clone. I understand it is related to the size of the object being cloned, but I was wondering if you did some test?

Jiri</description>
		<content:encoded><![CDATA[<p>Is this an expensive clone. I understand it is related to the size of the object being cloned, but I was wondering if you did some test?</p>
<p>Jiri</p>
]]></content:encoded>
	</item>
</channel>
</rss>

