<?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: How to clone (duplicate) an object in ActionScript 3</title> <atom:link href="http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/feed/" rel="self" type="application/rss+xml" /><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/</link> <description>No matter how you see things, reality changes when you reach understanding</description> <lastBuildDate>Thu, 29 Sep 2011 13:33:02 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1</generator> <item><title>By: admin</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-905</link> <dc:creator>admin</dc:creator> <pubDate>Thu, 25 Aug 2011 10:42:28 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-905</guid> <description>what do you mean by different ? what is different ? it doesn&#039;t have the foto method or what exactly ?</description> <content:encoded><![CDATA[<p>what do you mean by different ? what is different ? it doesn&#8217;t have the foto method or what exactly ?<br
/> <span
class="cluv">admin recently posted..<a
class="373fd25d5b 905" href="http://blog.another-d-mention.ro/programming/pixel-programming/">Pixel Programming</a><span
class="heart_tip_box"><img
class="heart_tip u 905" alt="My Profile" style="border:0" width="16" height="14" src="http://blog.another-d-mention.ro/wp-content/plugins/commentluv/images/littleheartplus.gif"/></span></span></p> ]]></content:encoded> </item> <item><title>By: Domenico Brun</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-904</link> <dc:creator>Domenico Brun</dc:creator> <pubDate>Thu, 25 Aug 2011 09:59:39 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-904</guid> <description>hi, this is my code
package
{
import flash.display.MovieClip;
import flash.text.TextField;
import flash.text.TextFormat;
import flash.text.TextFieldAutoSize;
import UtilFunctions;
public class foto extends MovieClip
{
public function foto():void
{
var tf:TextField = new TextField();
var tff:TextFormat = new TextFormat()
tff.size = 20;
tf.defaultTextFormat= tff;
tf.border = true;
tf.appendText(&quot;params:&quot; + &quot;\n&quot;);
try
{
var keyStr:String;
var valueStr:String;
var paramObj:Object = loaderInfo.parameters;
for (keyStr in paramObj)
{
valueStr = String(paramObj[keyStr]);
tf.appendText(&quot;\t&quot; + keyStr + &quot;:\t!!&quot; + valueStr + &quot;!!\n&quot;);
}
}
catch (error:Error)
{
// ignore error
}
tf.autoSize = TextFieldAutoSize.LEFT;
addChild(tf);
var tf2 = UtilFunctions.clone(tf) as TextField;
tf2.x = 200;
addChild(tf2);
}
}
}
I&#039;m new on AS3, anyway it seems that the second istance is quite different from the first, any idea?</description> <content:encoded><![CDATA[<p>hi, this is my code</p><p>package<br
/> {<br
/> import flash.display.MovieClip;<br
/> import flash.text.TextField;<br
/> import flash.text.TextFormat;<br
/> import flash.text.TextFieldAutoSize;<br
/> import UtilFunctions;</p><p> public class foto extends MovieClip<br
/> {<br
/> public function foto():void<br
/> {<br
/> var tf:TextField = new TextField();<br
/> var tff:TextFormat = new TextFormat()<br
/> tff.size = 20;<br
/> tf.defaultTextFormat= tff;<br
/> tf.border = true;<br
/> tf.appendText(&#8220;params:&#8221; + &#8220;\n&#8221;);<br
/> try<br
/> {<br
/> var keyStr:String;<br
/> var valueStr:String;<br
/> var paramObj:Object = loaderInfo.parameters;<br
/> for (keyStr in paramObj)<br
/> {<br
/> valueStr = String(paramObj[keyStr]);<br
/> tf.appendText(&#8220;\t&#8221; + keyStr + &#8220;:\t!!&#8221; + valueStr + &#8220;!!\n&#8221;);<br
/> }<br
/> }<br
/> catch (error:Error)<br
/> {<br
/> // ignore error<br
/> }</p><p> tf.autoSize = TextFieldAutoSize.LEFT;<br
/> addChild(tf);<br
/> var tf2 = UtilFunctions.clone(tf) as TextField;<br
/> tf2.x = 200;<br
/> addChild(tf2);<br
/> }<br
/> }<br
/> }</p><p>I&#8217;m new on AS3, anyway it seems that the second istance is quite different from the first, any idea?</p> ]]></content:encoded> </item> <item><title>By: Paul</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-901</link> <dc:creator>Paul</dc:creator> <pubDate>Tue, 23 Aug 2011 14:46:53 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-901</guid> <description>Thanks a lot!
Found as a solution for cloning VOs. Only public properties and no methods in there - suits nice. Does it job.
Took in my APP as ObjectUtil extension.</description> <content:encoded><![CDATA[<p>Thanks a lot!<br
/> Found as a solution for cloning VOs. Only public properties and no methods in there &#8211; suits nice. Does it job.<br
/> Took in my APP as ObjectUtil extension.</p> ]]></content:encoded> </item> <item><title>By: Como duplicar (clone) um objeto em actionscript 3 &#8211; Flex</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-879</link> <dc:creator>Como duplicar (clone) um objeto em actionscript 3 &#8211; Flex</dc:creator> <pubDate>Tue, 02 Aug 2011 19:14:35 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-879</guid> <description>[...] http://flex4fun.com/2010/11/30/flex4-arraycollection-copyclone-use-bytearray/ http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/ http://docs.huihoo.com/flex/4/mx/utils/ObjectUtil.html#clone()        Enjoyed this Post?Subscribe [...]</description> <content:encoded><![CDATA[<p>[...] <a
href="http://flex4fun.com/2010/11/30/flex4-arraycollection-copyclone-use-bytearray/" rel="nofollow">http://flex4fun.com/2010/11/30/flex4-arraycollection-copyclone-use-bytearray/</a> <a
href="http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/" rel="nofollow">http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/</a> <a
href="http://docs.huihoo.com/flex/4/mx/utils/ObjectUtil.html#clone" rel="nofollow">http://docs.huihoo.com/flex/4/mx/utils/ObjectUtil.html#clone</a>()        Enjoyed this Post?Subscribe [...]</p> ]]></content:encoded> </item> <item><title>By: Deril</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-853</link> <dc:creator>Deril</dc:creator> <pubDate>Thu, 28 Jul 2011 09:07:13 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-853</guid> <description>Thanks for good work!</description> <content:encoded><![CDATA[<p>Thanks for good work!</p> ]]></content:encoded> </item> <item><title>By: Ray</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-848</link> <dc:creator>Ray</dc:creator> <pubDate>Tue, 26 Jul 2011 15:28:04 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-848</guid> <description>The code helps me a lot, thank you very much</description> <content:encoded><![CDATA[<p>The code helps me a lot, thank you very much</p> ]]></content:encoded> </item> <item><title>By: Ben Kuper</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-846</link> <dc:creator>Ben Kuper</dc:creator> <pubDate>Mon, 25 Jul 2011 19:47:03 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-846</guid> <description>Hi, nice utilFunction, however i have nested properties and it doesn&#039;t seem to do any recursion... (the children of the children are the same).
I have a DataObject class with an Array of NestedDataObject. When i clone, the object direct properties are not the same but the nested properties are the same.
I look into the class and i didn&#039;t see any recursive algorithm. I&#039;ll try to find a workaround.</description> <content:encoded><![CDATA[<p>Hi, nice utilFunction, however i have nested properties and it doesn&#8217;t seem to do any recursion&#8230; (the children of the children are the same).</p><p>I have a DataObject class with an Array of NestedDataObject. When i clone, the object direct properties are not the same but the nested properties are the same.</p><p>I look into the class and i didn&#8217;t see any recursive algorithm. I&#8217;ll try to find a workaround.</p> ]]></content:encoded> </item> <item><title>By: Cù Kim Ngọc</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-835</link> <dc:creator>Cù Kim Ngọc</dc:creator> <pubDate>Thu, 21 Jul 2011 03:20:21 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-835</guid> <description>Thank you for this share !</description> <content:encoded><![CDATA[<p>Thank you for this share !</p> ]]></content:encoded> </item> <item><title>By: Application Focus &#187; Cloning Objects In Flex</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-652</link> <dc:creator>Application Focus &#187; Cloning Objects In Flex</dc:creator> <pubDate>Tue, 17 May 2011 05:55:23 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-652</guid> <description>[...] subclass of the component and implement a clone method instead, or you can try a class written on  ADM Blog for cloning none data objects.       Categories: Flex, Programming Tags: clone, flex        [...]</description> <content:encoded><![CDATA[<p>[...] subclass of the component and implement a clone method instead, or you can try a class written on  ADM Blog for cloning none data objects.       Categories: Flex, Programming Tags: clone, flex        [...]</p> ]]></content:encoded> </item> <item><title>By: Marcus</title><link>http://blog.another-d-mention.ro/programming/how-to-clone-duplicate-an-object-in-actionscript-3/comment-page-1/#comment-611</link> <dc:creator>Marcus</dc:creator> <pubDate>Mon, 09 May 2011 07:51:36 +0000</pubDate> <guid
isPermaLink="false">http://blog.another-d-mention.ro/?p=440#comment-611</guid> <description>Thank you for this utility, helps a lot!</description> <content:encoded><![CDATA[<p>Thank you for this utility, helps a lot!</p> ]]></content:encoded> </item> </channel> </rss>
