<?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: var_dump for AS3</title>
	<atom:link href="http://blog.benjaminwiederkehr.com/downloads/var_dump-for-as3/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3</link>
	<description>User Experience Designer</description>
	<lastBuildDate>Sat, 08 Aug 2009 14:08:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Benji</title>
		<link>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3/comment-page-1#comment-137</link>
		<dc:creator>Benji</dc:creator>
		<pubDate>Mon, 22 Jun 2009 07:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://portfolio.artillery.ch/?p=252#comment-137</guid>
		<description>Thanks for this upgrade Sebastian. I&#039;ll include it in the Snipplr.com snippet.</description>
		<content:encoded><![CDATA[<p>Thanks for this upgrade Sebastian. I&#8217;ll include it in the Snipplr.com snippet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Paaske Tørholm</title>
		<link>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3/comment-page-1#comment-136</link>
		<dc:creator>Sebastian Paaske Tørholm</dc:creator>
		<pubDate>Sun, 21 Jun 2009 22:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://portfolio.artillery.ch/?p=252#comment-136</guid>
		<description>Remove the &quot;name + &quot;: &quot; from that, actually.</description>
		<content:encoded><![CDATA[<p>Remove the &#8220;name + &#8220;: &#8221; from that, actually.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Paaske Tørholm</title>
		<link>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3/comment-page-1#comment-135</link>
		<dc:creator>Sebastian Paaske Tørholm</dc:creator>
		<pubDate>Sun, 21 Jun 2009 22:31:07 +0000</pubDate>
		<guid isPermaLink="false">http://portfolio.artillery.ch/?p=252#comment-135</guid>
		<description>I modified it a bit to include names of fields dumped in objects.

function analyze(_obj):void {
	var item:Object;
	switch (typeof(_obj)){
		case &quot;object&quot;:
			write(&quot;&quot;);
			for (var key in _obj){
				write(&quot;&quot;);
				analyze(_obj[key]);
				write(&quot;&quot;);
			};
			write(&quot;&quot;);
		break;
		case &quot;xml&quot;:
			write(&quot;&quot;);
			write(_obj);
			write(&quot;&quot;);
		break;
		default:
			write(name + &quot;: &quot; + _obj + &quot; (&quot; + typeof(_obj) + &quot;)&quot;);
		break;
	};
} // analyze()</description>
		<content:encoded><![CDATA[<p>I modified it a bit to include names of fields dumped in objects.</p>
<p>function analyze(_obj):void {<br />
	var item:Object;<br />
	switch (typeof(_obj)){<br />
		case &#8220;object&#8221;:<br />
			write(&#8220;&#8221;);<br />
			for (var key in _obj){<br />
				write(&#8220;&#8221;);<br />
				analyze(_obj[key]);<br />
				write(&#8220;&#8221;);<br />
			};<br />
			write(&#8220;&#8221;);<br />
		break;<br />
		case &#8220;xml&#8221;:<br />
			write(&#8220;&#8221;);<br />
			write(_obj);<br />
			write(&#8220;&#8221;);<br />
		break;<br />
		default:<br />
			write(name + &#8220;: &#8221; + _obj + &#8221; (&#8221; + typeof(_obj) + &#8220;)&#8221;);<br />
		break;<br />
	};<br />
} // analyze()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MajiD Fatemian</title>
		<link>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3/comment-page-1#comment-115</link>
		<dc:creator>MajiD Fatemian</dc:creator>
		<pubDate>Sun, 01 Feb 2009 00:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://portfolio.artillery.ch/?p=252#comment-115</guid>
		<description>Hey benjamin
Great Job, It&#039;s really helpful.
But as Alex raised it doesn&#039;t work for objects.
It works fine for an object like the one you mentioned in your example, but consider an object which comes from a custom class.

var myObj:myCustomClass = new myCustomClass();
analyze(myObj);

it won&#039;t work.
If you can update it it will be a great relief for all AS developers.</description>
		<content:encoded><![CDATA[<p>Hey benjamin<br />
Great Job, It&#8217;s really helpful.<br />
But as Alex raised it doesn&#8217;t work for objects.<br />
It works fine for an object like the one you mentioned in your example, but consider an object which comes from a custom class.</p>
<p>var myObj:myCustomClass = new myCustomClass();<br />
analyze(myObj);</p>
<p>it won&#8217;t work.<br />
If you can update it it will be a great relief for all AS developers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benji</title>
		<link>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3/comment-page-1#comment-110</link>
		<dc:creator>Benji</dc:creator>
		<pubDate>Thu, 20 Nov 2008 08:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://portfolio.artillery.ch/?p=252#comment-110</guid>
		<description>Update: the typeof() function returns &#039;object&#039; for an array. so there&#039;s no need to specifically include it in the switch-case query.

@Alex: These examples work correctly in my demo:
var boolean:Boolean = false;
var string:String = &quot;Lorem&quot;;
var number:Number = 23;
var array:Array = new Array(1,2,&quot;3&quot;);
var object:Object = new Object();
object.string = string;
object.number = number;
object.array = array;

analyze(boolean);
analyze(string);
analyze(number);
analyze(array);
analyze(object);

If you still got problems with the updated version of the function please submit the missbehaving object and I&#039;ll try to fix it.

Benjamin</description>
		<content:encoded><![CDATA[<p>Update: the typeof() function returns &#8216;object&#8217; for an array. so there&#8217;s no need to specifically include it in the switch-case query.</p>
<p>@Alex: These examples work correctly in my demo:<br />
var boolean:Boolean = false;<br />
var string:String = &#8220;Lorem&#8221;;<br />
var number:Number = 23;<br />
var array:Array = new Array(1,2,&#8221;3&#8243;);<br />
var object:Object = new Object();<br />
object.string = string;<br />
object.number = number;<br />
object.array = array;</p>
<p>analyze(boolean);<br />
analyze(string);<br />
analyze(number);<br />
analyze(array);<br />
analyze(object);</p>
<p>If you still got problems with the updated version of the function please submit the missbehaving object and I&#8217;ll try to fix it.</p>
<p>Benjamin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benji</title>
		<link>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3/comment-page-1#comment-109</link>
		<dc:creator>Benji</dc:creator>
		<pubDate>Thu, 20 Nov 2008 07:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://portfolio.artillery.ch/?p=252#comment-109</guid>
		<description>@Alex: Thanks for pointing out this issue. I&#039;ll have a look at it to see where the problem lies and get back at you as soon as possible.</description>
		<content:encoded><![CDATA[<p>@Alex: Thanks for pointing out this issue. I&#8217;ll have a look at it to see where the problem lies and get back at you as soon as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3/comment-page-1#comment-108</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 20 Nov 2008 00:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://portfolio.artillery.ch/?p=252#comment-108</guid>
		<description>Hi there,
This function doesn&#039;t seem to be printing object variables. I&#039;ve an object called Slide with internal strings and numbers stored within. When I used your analyze function it simply just prints;


[object Slide]


Any ideas why? Logically it should work, the for each() doesn&#039;t seem to be doing its job.

Cheers</description>
		<content:encoded><![CDATA[<p>Hi there,<br />
This function doesn&#8217;t seem to be printing object variables. I&#8217;ve an object called Slide with internal strings and numbers stored within. When I used your analyze function it simply just prints;</p>
<p>[object Slide]</p>
<p>Any ideas why? Logically it should work, the for each() doesn&#8217;t seem to be doing its job.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
</channel>
</rss>

