<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Passing arguments to an ActionScript function</title>
	<link>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/</link>
	<description>A blog for anything</description>
	<pubDate>Tue,  7 Sep 2010 08:58:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: crisp</title>
		<link>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-12</link>
		<pubDate>Wed, 29 Mar 2006 15:55:21 +0000</pubDate>
		<guid>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-12</guid>
					<description>I think mx.utils.ObjectUtil.copy does the same thing as your clone method ....</description>
		<content:encoded><![CDATA[<p>I think mx.utils.ObjectUtil.copy does the same thing as your clone method &#8230;.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: mteguh</title>
		<link>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-10</link>
		<pubDate>Tue, 14 Mar 2006 04:54:32 +0000</pubDate>
		<guid>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-10</guid>
					<description>Hi Greg,

Thank you for pointing out the bug.
You are right.  I wasn't taking that into consideration when I wrote it.

I guess the solution is to check if the member is the object itself.

So it is going to look like:
if (o[i] === o) {
   copy[i] = copy;
} else {
   copy[i] = (typeof(o[i]) == &quot;object&quot;)? clone(o[i]) : o[i];
}

BTW, the code in the post now is the updated version.

-Teguh</description>
		<content:encoded><![CDATA[<p>Hi Greg,</p>
<p>Thank you for pointing out the bug.<br />
You are right.  I wasn&#8217;t taking that into consideration when I wrote it.</p>
<p>I guess the solution is to check if the member is the object itself.</p>
<p>So it is going to look like:<br />
if (o[i] === o) {<br />
   copy[i] = copy;<br />
} else {<br />
   copy[i] = (typeof(o[i]) == &#8220;object&#8221;)? clone(o[i]) : o[i];<br />
}</p>
<p>BTW, the code in the post now is the updated version.</p>
<p>-Teguh
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Greg</title>
		<link>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-8</link>
		<pubDate>Mon, 13 Mar 2006 20:38:35 +0000</pubDate>
		<guid>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-8</guid>
					<description>Hi
Let us consider an object with a property that is pointing to itself.:
a = {};
a.b = a;
//
function clone(a) gives an infinite recursion then. How to prevent it ?
greg</description>
		<content:encoded><![CDATA[<p>Hi<br />
Let us consider an object with a property that is pointing to itself.:<br />
a = {};<br />
a.b = a;<br />
//<br />
function clone(a) gives an infinite recursion then. How to prevent it ?<br />
greg
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alex</title>
		<link>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-6</link>
		<pubDate>Fri, 10 Mar 2006 11:44:27 +0000</pubDate>
		<guid>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-6</guid>
					<description>Hi this stuff is always very useful. Why does actionscript2 not have a clone method for its object class. Are they simply trying to keep it light? Its always a pain when you need to copy object values.

Alex</description>
		<content:encoded><![CDATA[<p>Hi this stuff is always very useful. Why does actionscript2 not have a clone method for its object class. Are they simply trying to keep it light? Its always a pain when you need to copy object values.</p>
<p>Alex
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jennifer</title>
		<link>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-2</link>
		<pubDate>Fri, 24 Feb 2006 20:50:01 +0000</pubDate>
		<guid>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-2</guid>
					<description>thank you, this is really helpful! keep going!</description>
		<content:encoded><![CDATA[<p>thank you, this is really helpful! keep going!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mr WordPress</title>
		<link>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-1</link>
		<pubDate>Tue, 21 Feb 2006 01:31:26 +0000</pubDate>
		<guid>http://capcai.indorelation.com/blog/index.php/2006/02/20/passing-arguments-to-an-actionscript-function/#comment-1</guid>
					<description>Hi, this is a comment.&lt;br /&gt;To delete a comment, just log in, and view the posts' comments, there you will have the option to edit or delete them.</description>
		<content:encoded><![CDATA[<p>Hi, this is a comment.<br />To delete a comment, just log in, and view the posts&#8217; comments, there you will have the option to edit or delete them.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
