<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Benjamin Wiederkehr&#039;s Blog &#187; AS3</title>
	<atom:link href="http://blog.benjaminwiederkehr.com/tag/as3/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.benjaminwiederkehr.com</link>
	<description>User Experience Designer</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:00:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SWF-Console</title>
		<link>http://blog.benjaminwiederkehr.com/all/downloads/swf-console</link>
		<comments>http://blog.benjaminwiederkehr.com/all/downloads/swf-console#comments</comments>
		<pubDate>Fri, 12 Sep 2008 11:21:14 +0000</pubDate>
		<dc:creator>Benjamin</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://portfolio.artillery.ch/?p=261</guid>
		<description><![CDATA[Description The swf-console helps you to output information about an object. It displays a small textfield utility with basic functionalities. Scroll, drag &#038; drop and resize to be exact. It delivers two API methods to output data. It is intended to be used when you haven&#8217;t the native trace-window available (in-browser developement for example). The [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.benjaminwiederkehr.com/wp-content/uploads/2008/09/swf-console_teaser.png" alt="" title="swf-console_teaser" width="470" height="126" class="alignnone size-full teaser wp-image-262" /><br />
<span id="more-261"></span></p>
<h3>Description</h3>
<p>The swf-console helps you to output information about an object. It displays a small textfield utility with basic functionalities. Scroll, drag &#038; drop and resize to be exact. It delivers two API methods to output data. It is intended to be used when you haven&#8217;t the native trace-window available (in-browser developement for example).</p>
<p>The console uses the <code>analyze()</code> function which is also available as the <a href="http://blog.benjaminwiederkehr.com/?p=252" title="var_dump for AS3">var_dump for AS3</a> snippet</p>
<h3>Installation</h3>
<ol>
<li>
<p>Import the package<br />
<code>import console.Console;</code></p>
</li>
<li>
<p>Create the console<br />
<code>private var console:Console = new Console(this);</code></p>
</li>
<li>
<p>Add the console to the DisplayObjectContainer<br />
<code>this.addChild(console);</code></p>
</li>
<li>
<p>Call one of the api methods in your code<br />
<code>console.analyze(this);</code><br />
<code>console.print(this);</code></p>
</li>
<li>
<p>Display the console by pressing the space-bar<br />
<code>customize this interaction by changing the key-code at Console.as #249</code></p>
</li>
</ol>
<h3>Download</h3>
<p>The project is hosted on <a href="http://github.com/wiederkehr/swf-console/" title="SWF-Console on gitHub">gitHub</a> – feel free to participate and help improve the code or just let me hear your thoughts.<br />
<a href="http://github.com/wiederkehr/swf-console/zipball/master" title="SWF-Console ZIP">Download the SWF-Console ZIP here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.benjaminwiederkehr.com/all/downloads/swf-console/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>var_dump for AS3</title>
		<link>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3</link>
		<comments>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3#comments</comments>
		<pubDate>Fri, 12 Sep 2008 09:13:31 +0000</pubDate>
		<dc:creator>Benjamin</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[AS3]]></category>

		<guid isPermaLink="false">http://portfolio.artillery.ch/?p=252</guid>
		<description><![CDATA[The var_dump for AS3 is a code snipped i use on a regularly basis to get information about an object when developping with AS3 in Adobe Flash. It contains two functions: analyze() and write(). The first is a recursive function that analyzes a given object. It uses the second function to trace out the gathered [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.benjaminwiederkehr.com/wp-content/uploads/2008/09/var_dump_teaser.png" alt="" title="var_dump_teaser" width="470" height="126" class="alignnone teaser size-full wp-image-258" /><br />
<span id="more-252"></span></p>
<p>The var_dump for AS3 is a code snipped i use on a regularly basis to get information about an object when developping with AS3 in <a href="http://www.adobe.com/products/flash/">Adobe Flash</a>. It contains two functions: <code>analyze()</code> and <code>write()</code>. The first is a recursive function that analyzes a given object. It uses the second function to trace out the gathered infromation. If you want to output the information elsewhere you can simply customize the <code>write()</code> function.</p>
<p>The code snippet is hosted on <a href="http://snipplr.com/view/8195/" title="snipplr.com – social code snippets">snipplr.com</a> and I would be glad to receive feedback and suggestion on how to improve the code.</p>
<p></p><p></p><div class='code' style='overflow: auto; white-space:nowrap;'>public function analyze(_obj):void {<br />
&nbsp; &nbsp; &nbsp; &nbsp; var item:Object;<br />
&nbsp; &nbsp; &nbsp; &nbsp; switch (typeof(_obj)){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case &quot;object&quot;:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write(&quot;&lt;object&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write(_obj.toString());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for each (item in _obj){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; analyze(item);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write(&quot;&lt;/object&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case &quot;xml&quot;:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write(&quot;&lt;xml&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write(_obj);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write(&quot;&lt;/xml&gt;&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; default:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; write(_obj + &quot; (&quot; + typeof(_obj) + &quot;)&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; };<br />
} // analyze()<br />
public function write(_obj):void{<br />
&nbsp; &nbsp; &nbsp; &nbsp; trace(_obj);<br />
} // END write()</div><p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.benjaminwiederkehr.com/all/downloads/var_dump-for-as3/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

