<?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>Flexperiments &#187; Flash</title>
	<atom:link href="http://labs.flexperiments.nl/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://labs.flexperiments.nl</link>
	<description></description>
	<lastBuildDate>Sun, 23 May 2010 10:27:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Away3D and alpha:0&#8230; a no-go</title>
		<link>http://labs.flexperiments.nl/away3d-and-alpha0-a-no-go/</link>
		<comments>http://labs.flexperiments.nl/away3d-and-alpha0-a-no-go/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 12:57:48 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Away3D]]></category>
		<category><![CDATA[debug]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=133</guid>
		<description><![CDATA[Today, I&#8217;ve spent the entire morning fixing a strange error in a Flash Project with Away3D. Every now and then, it would give me the following error: Error #2007: Parameter bitmap must be non-null. It would give the error when calling the render function of the view. The strange thing is that it would never [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I&#8217;ve spent the entire morning fixing a strange error in a Flash Project with Away3D. Every now and then, it would give me the following error: <code>Error #2007: Parameter bitmap must be non-null</code>. It would give the error when calling the render function of the view.<br />
The strange thing is that it would <b>never</b> give the error when running in debug mode, making it very hard to find the cause of the error. Eventually, I found that Away3D is not very fond of objects with alpha set to 0. Setting it to 0.01 made all the errors magically disappear. For me, this is fine, but I can imagine scenario&#8217;s where this is not a suitable work-around, so I&#8217;ve also reported it to the away3d devvers.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/away3d-and-alpha0-a-no-go/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Update Time! Next Up: ASDebugger 2.2</title>
		<link>http://labs.flexperiments.nl/update-time-next-up-asdebugger-22/</link>
		<comments>http://labs.flexperiments.nl/update-time-next-up-asdebugger-22/#comments</comments>
		<pubDate>Sun, 03 May 2009 12:08:00 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[ASDebugger]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[FLPTree]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=120</guid>
		<description><![CDATA[I&#8217;ve updated the ASDebugger. Not much news here, I only implemented an updated (less buggy) version of the FlpTree. You can download the debugger on the project page.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated the ASDebugger. Not much news here, I only implemented an updated (less buggy) version of the FlpTree. You can download the debugger on the <a href="http://labs.flexperiments.nl/asdebugger/" title="ASDebugger Project page">project page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/update-time-next-up-asdebugger-22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vote against new Flash Player security measures!</title>
		<link>http://labs.flexperiments.nl/vote-against-new-flash-player-security-measures/</link>
		<comments>http://labs.flexperiments.nl/vote-against-new-flash-player-security-measures/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 14:03:47 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[flash player]]></category>
		<category><![CDATA[FP10]]></category>
		<category><![CDATA[upload]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=85</guid>
		<description><![CDATA[Not too long ago, Adobe launched Flash Player 10. Hooray, party! But not everything is well in this new flashplayer. I believe this is the first flash player which actually breaks old flash apps. This is because Adobe tightened the security with this new version even further.  Now, I am aware that security is necessary [...]]]></description>
			<content:encoded><![CDATA[<p>Not too long ago, Adobe launched Flash Player 10. Hooray, party! But not everything is well in this new flashplayer. I believe this is the first flash player which actually breaks old flash apps. This is because Adobe tightened the security with this new version even further.  Now, I am aware that security is necessary for a plugin like flash. But there&#8217;s one measure I can&#8217;t figure out.</p>
<p>Any browse or save as dialog can only be triggered by user input (keyboard or mouse(click)). And this makes sense, you don&#8217;t want an ad to popup thousands of &#8216;browse&#8217; windows. But I cannot see why this same security measure is taken for doing a multipart request. Why sould user interaction be needed to upload, say a bytearray, to the server. This bytearray could easily be generated from a bitmap(data), so no browse for file window is needed.</p>
<p>This error came up in an application which displays a small photo. The user can upload a photo to the server. This server is somehow not capable of resizing images, so the uploaded image is downloaded to the flash again, resized in flash and send as a bytearray to the server again.</p>
<p>This worked perfectly in FP &lt; 10, but now, there has to be some interaction to do the second upload. We worked around this by having a small popup asking the user if the uploaded picture is the correct one. Works also, but it&#8217;s just a work-around, not a solution.</p>
<p>I talked about this issue with James Ward of Adobe, and he also didn&#8217;t see why this security has been taken. So, I&#8217;ve created a feature request in the bug system of adobe, located at <a title="Adobe Bug System" href="https://bugs.adobe.com/jira/browse/FP-978" target="_blank">https://bugs.adobe.com/jira/browse/FP-978</a>. Please vote if you think this is a ridiculous security measure and should be removed!</p>
<p>Thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/vote-against-new-flash-player-security-measures/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>AIR + Chuck Norris = Chuck Norris Facts Desktop app</title>
		<link>http://labs.flexperiments.nl/air-chuck-norris-chuck-norris-facts-desktop-app/</link>
		<comments>http://labs.flexperiments.nl/air-chuck-norris-chuck-norris-facts-desktop-app/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 14:39:41 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Chuck Norris]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=72</guid>
		<description><![CDATA[Today, I fiddled a bit with Adobe AIR (Adobe Integrated Runtime) in Flash CS3, and look here, I&#8217;ve created the best application ever! (Every application featuring Chuck Norris is the best application ever). It serves random facts and roundhouse kicks you in the face! Check it out: 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_AIRInstallBadge_2062145011"
			class="flashmovie"
			width="215"
			height="180">
	<param name="movie" value="http://www.flexperiments.nl/air/badge/AIRInstallBadge.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.flexperiments.nl/air/badge/AIRInstallBadge.swf"
			name="fm_AIRInstallBadge_2062145011"
			width="215"
			height="180">
	<!--<![endif]-->
		]]></description>
			<content:encoded><![CDATA[<p>Today, I fiddled a bit with Adobe AIR (Adobe Integrated Runtime) in Flash CS3, and look here, I&#8217;ve created the best application ever! (Every application featuring Chuck Norris is the best application ever).</p>
<p>It serves random facts and roundhouse kicks you in the face! Check it out:</p>
<p>[kml_flashembed fversion="9.0.0" movie="http://www.flexperiments.nl/air/badge/AIRInstallBadge.swf" targetclass="flashmovie" useexpressinstall="true" publishmethod="static" width="215" height="180" fvars="airversion=1.1;appname=Chuck Norris Facts;appurl=http://www.flexperiments.nl/air/chucknorris/chucknorris.air;appid=nl.flexperiments.ChuckNorris;pubid=flexperiments;appversion=1.0.0;imageurl=http://www.flexperiments.nl/air/chucknorris/img.jpg"]</p>
<p><a href="http://adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/air-chuck-norris-chuck-norris-facts-desktop-app/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>3D Text with Away3d, pt.2</title>
		<link>http://labs.flexperiments.nl/3d-text-with-away3d-pt2/</link>
		<comments>http://labs.flexperiments.nl/3d-text-with-away3d-pt2/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 07:01:39 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Components]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Away3D]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=70</guid>
		<description><![CDATA[I&#8217;ve updated my 3d text component a bit, performance should now be a bit better. Furthermore, you can now choose any font you&#8217;ve installed on your system (just to prove that they are real fonts). See it in action: 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Text3dFx_740896703"
			class="flashmovie"
			width="660"
			height="200">
	<param name="movie" value="http://experiments.flexperiments.nl/3dtext2/Text3dFx.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://experiments.flexperiments.nl/3dtext2/Text3dFx.swf"
			name="fm_Text3dFx_740896703"
			width="660"
			height="200">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> Ow and by the way: right click to see the source [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve updated my 3d text component a bit, performance should now be a bit better. Furthermore, you can now choose any font you&#8217;ve installed on your system (just to prove that they are real fonts). See it in action:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Text3dFx_394715909"
			class="flashmovie"
			width="660"
			height="200">
	<param name="movie" value="http://experiments.flexperiments.nl/3dtext2/Text3dFx.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://experiments.flexperiments.nl/3dtext2/Text3dFx.swf"
			name="fm_Text3dFx_394715909"
			width="660"
			height="200">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Ow and by the way: right click to see the source and find out how it&#8217;s done.</p>
<p>The source seems to be fucked up, here&#8217;s the relevant code: <a href="http://experiments.flexperiments.nl/3dtext2/srcview/source/experiments/flexperiments/text3d/Text3dFXApp.as.html ">http://experiments.flexperiments.nl/3dtext2/srcview/source/experiments/flexperiments/text3d/Text3dFXApp.as.html </a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/3d-text-with-away3d-pt2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>3D Text with Away3D</title>
		<link>http://labs.flexperiments.nl/3d-text-with-away3d/</link>
		<comments>http://labs.flexperiments.nl/3d-text-with-away3d/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 08:06:27 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[Away3D]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=64</guid>
		<description><![CDATA[The other day, I was playing with the away 3D engine and I discovered that you can have 3D text. It&#8217;s really cool, look at this: 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_text3d_475006922"
			class="flashmovie"
			width="660"
			height="200">
	<param name="movie" value="http://experiments.flexperiments.nl/3dtext/text3d.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://experiments.flexperiments.nl/3dtext/text3d.swf"
			name="fm_text3d_475006922"
			width="660"
			height="200">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> Cool huh? You can change the text by altering the text in the input field (topleft corner). I&#8217;ll be tweaking this little thingy a [...]]]></description>
			<content:encoded><![CDATA[<p>The other day, I was playing with the away 3D engine and I discovered that you can have 3D text. It&#8217;s really cool, look at this:</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_text3d_684811065"
			class="flashmovie"
			width="660"
			height="200">
	<param name="movie" value="http://experiments.flexperiments.nl/3dtext/text3d.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://experiments.flexperiments.nl/3dtext/text3d.swf"
			name="fm_text3d_684811065"
			width="660"
			height="200">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Cool huh? You can change the text by altering the text in the input field (topleft corner). I&#8217;ll be tweaking this little thingy a bit further to increase the performance.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/3d-text-with-away3d/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Check out this amazing Away3D demo!</title>
		<link>http://labs.flexperiments.nl/check-out-this-amazing-away3d-demo/</link>
		<comments>http://labs.flexperiments.nl/check-out-this-amazing-away3d-demo/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 20:00:35 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[Away3D]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=54</guid>
		<description><![CDATA[Fabrice, our mad french scientist @ TFE just released this fabulous demo of their 3D engine. Way to go, Fab-man! Check it out here: http://www.closier.nl/blog/?p=77]]></description>
			<content:encoded><![CDATA[<p>Fabrice, our mad french scientist @ TFE just released this fabulous demo of their 3D engine. Way to go, Fab-man!</p>
<p>Check it out here: <a title="Away3D Demo" href="http://www.closier.nl/blog/?p=77">http://www.closier.nl/blog/?p=77</a></p>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/check-out-this-amazing-away3d-demo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Now Available: ASDebugger 2.1</title>
		<link>http://labs.flexperiments.nl/now-available-asdebugger-21/</link>
		<comments>http://labs.flexperiments.nl/now-available-asdebugger-21/#comments</comments>
		<pubDate>Mon, 29 Sep 2008 19:38:54 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Components]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[ASDebugger]]></category>
		<category><![CDATA[debug]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=51</guid>
		<description><![CDATA[I&#8217;ve just released ASDebugger version 2.1. Some minor bugs are fixed, like: You can now edit any movieclip from the displaylist, not just the deepest ones Copy all to clipboard now works as expected Scrolling a numeric stepper only scrolls the stepper, not the tree It&#8217;s now possible to close root nodes The console scrolls [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just released ASDebugger version 2.1. Some minor bugs are fixed, like:</p>
<ul>
<li>You can now edit any movieclip from the displaylist, not just the deepest ones</li>
<li>Copy all to clipboard now works as expected</li>
<li>Scrolling a numeric stepper only scrolls the stepper, not the tree</li>
<li>It&#8217;s now possible to close root nodes</li>
<li>The console scrolls with the content</li>
</ul>
<p>And some features are added:</p>
<ul>
<li>Copy an object as JSON string (only works for simple / small objects)</li>
<li>Re-added legacy support for our old (in-house) TFEDebugger</li>
</ul>
<p>For this update you need to update both the SWC and the SWF / EXE file! But there&#8217;s backwards compatibility both ways.</p>
<p>And it&#8217;s available at the <a title="ASDebugger project page" href="http://labs.flexperiments.nl/asdebugger/">project page</a>, now.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/now-available-asdebugger-21/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>ASDebugger 2.0: A real-time debugger and editor</title>
		<link>http://labs.flexperiments.nl/asdebugger-20-a-real-time-debugger-and-editor/</link>
		<comments>http://labs.flexperiments.nl/asdebugger-20-a-real-time-debugger-and-editor/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 18:46:12 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Components]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ASDebugger]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[swc]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=24</guid>
		<description><![CDATA[Yeah! It&#8217;s here, the long awaited update for my debugger. And since I&#8217;ve added a lot of new functionality, I decided to raise the major version number (easy decision to make when you&#8217;re the only developer on the project ). So, what does it do? Well, a small list: Send traces / strings Inspect objects, [...]]]></description>
			<content:encoded><![CDATA[<p>Yeah! It&#8217;s here, the long awaited update for my debugger. And since I&#8217;ve added a lot of new functionality, I decided to raise the major version number (easy decision to make when you&#8217;re the only developer on the project <img src='http://labs.flexperiments.nl/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> ). So, what does it do? Well, a small list:</p>
<ul>
<li>Send traces / strings</li>
<li>Inspect objects, movieclips, displayobjects <strong>and alter their values.</strong></li>
<li>Browse through the displaylist of any (flex or flash) application.<span id="more-24"></span></li>
</ul>
<p>You can compare this tool with the debugging options and object inspector of flex, <strong>but </strong>you now have the possibility to edit all the objects&#8217; variables (only strings, numbers and booleans though) in real time.</p>
<h3>How does it work?</h3>
<p>Easy!</p>
<ol>
<li>First, <a title="ASDebugger project page" href="http://labs.flexperiments.nl/asdebugger/">download</a> the ASDebugger.swc and the ASDebugger as .exe or .swf (air version will follow on demand);</li>
<li>Include the swc file in your flex or flash project;</li>
<li>Place a debug statement like this: ASDebugger.debug_prop(&lt;any object&gt;) anywhere in your code;</li>
<li>Fire up the debugger;</li>
<li>Compile your project;</li>
<li>See what it sends to the ASDebugger, change the values you want to change, see your changes immediately!</li>
</ol>
<h3>How do I get it?</h3>
<p>You can download the neccessary files from the <a title="ASDebugger project page" href="http://labs.flexperiments.nl/asdebugger/">ASDebugger project page</a>.</p>
<h3>Is it free?</h3>
<p>For now, yes. But I&#8217;m not sure if future versions will be.</p>
<h3>I have a question / found a bug / want to request a feature</h3>
<p>Please leave a comment on any of the ASDebugger related posts on this blog (this post for instance <img src='http://labs.flexperiments.nl/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> ). Do let me know what you think!.</p>
<h3>I wanna see an example!</h3>
<p>Here you go:</p>
<table border="0">
<tbody>
<tr>
<td>Flex example</td>
<td>Flash example</td>
<td>ASDebugger 2.0</td>
</tr>
<tr valign="top">
<td>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ASDebuggerExample_1201022027"
			class="flashmovie"
			width="200"
			height="500">
	<param name="movie" value="http://www.flexperiments.nl/asdebugger/version2/example/ASDebuggerExample.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.flexperiments.nl/asdebugger/version2/example/ASDebuggerExample.swf"
			name="fm_ASDebuggerExample_1201022027"
			width="200"
			height="500">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></td>
<td>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ExampleFlash_658554423"
			class="flashmovie"
			width="200"
			height="500">
	<param name="movie" value="http://www.flexperiments.nl/asdebugger/version2/exampleflash/ExampleFlash.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.flexperiments.nl/asdebugger/version2/exampleflash/ExampleFlash.swf"
			name="fm_ExampleFlash_658554423"
			width="200"
			height="500">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></td>
<td>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ASDebugger_879740200"
			class="flashmovie"
			width="270"
			height="500">
	<param name="movie" value="http://www.flexperiments.nl/asdebugger/version2/ASDebugger.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.flexperiments.nl/asdebugger/version2/ASDebugger.swf"
			name="fm_ASDebugger_879740200"
			width="270"
			height="500">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/asdebugger-20-a-real-time-debugger-and-editor/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>ASDebugger: A run-time debugger for AS3 Projects</title>
		<link>http://labs.flexperiments.nl/asdebugger-a-run-time-debugger-for-as3-projects/</link>
		<comments>http://labs.flexperiments.nl/asdebugger-a-run-time-debugger-for-as3-projects/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 20:09:55 +0000</pubDate>
		<dc:creator>Ids</dc:creator>
				<category><![CDATA[Components]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[ASDebugger]]></category>
		<category><![CDATA[debug]]></category>

		<guid isPermaLink="false">http://labs.flexperiments.nl/?p=4</guid>
		<description><![CDATA[When you&#8217;re developing an Actionscript project &#8211; Flash or Flex &#8211; you cannot live without a decent debugger. Flex provides quite a good debugger and the Flash IDE has also a reasonable debugger. The problem with those debuggers is that you have to build explicitly for the debugger. So when you&#8217;re deploying on a remote [...]]]></description>
			<content:encoded><![CDATA[<p>When you&#8217;re developing an Actionscript project &#8211; Flash or Flex &#8211; you cannot live without a decent debugger. Flex provides quite a good debugger and the Flash IDE has also a reasonable debugger. The problem with those debuggers is that you have to build explicitly for the debugger. So when you&#8217;re deploying on a remote server, you don&#8217;t have those debug options.</p>
<p>The ASDebugger allows you to trace variables. It has support for strings, integers, arrays, dates, arraycollections, objects and everything in between.</p>
<p>Usage is simple, import the asdebug.as class in your application and call the debugger:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p4code2'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p42"><td class="code" id="p4code2"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">import</span> nl.<span style="color: #006600;">flplibrary</span>.<span style="color: #006600;">debug</span>.<span style="color: #006600;">ASDebugger</span>;
<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">collections</span>.<span style="color: #006600;">ArrayCollection</span>;	
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> simpleDebug<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	ASDebugger.<span style="color: #006600;">debug</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;&amp;lt;b&amp;gt;test&amp;lt;/b&amp;gt;&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> advancedDebug<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">var</span> o:<span style="color: #0066CC;">Object</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Object</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	o.<span style="color: #006600;">my_string</span> = <span style="color: #ff0000;">&quot;&amp;lt;i&amp;gt;string&amp;lt;/i&amp;gt;&quot;</span>;
	o.<span style="color: #006600;">my_number</span> = <span style="color: #cc66cc;">123.456</span>;
	o.<span style="color: #006600;">my_int</span> = <span style="color: #0066CC;">parseInt</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #66cc66;">&#41;</span>;
	o.<span style="color: #006600;">my_array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;item 1&quot;</span>, <span style="color: #ff0000;">&quot;item 2&quot;</span>, <span style="color: #ff0000;">&quot;item 3&quot;</span><span style="color: #66cc66;">&#93;</span>;
	o.<span style="color: #006600;">my_arraycollection</span> = <span style="color: #000000; font-weight: bold;">new</span> ArrayCollection<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;item 1&quot;</span>, <span style="color: #0066CC;">data</span>: <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#125;</span>,
												<span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;item 2&quot;</span>, <span style="color: #0066CC;">data</span>: <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#125;</span>,
												<span style="color: #66cc66;">&#123;</span>label:<span style="color: #ff0000;">&quot;item 3&quot;</span>, <span style="color: #0066CC;">data</span>: <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
	o.<span style="color: #006600;">my_object</span> = <span style="color: #66cc66;">&#123;</span>	label1:<span style="color: #ff0000;">&quot;item 1&quot;</span>, data1: <span style="color: #cc66cc;">1</span>,
					label2:<span style="color: #ff0000;">&quot;&amp;lt;i&amp;gt;item 2&amp;lt;/i&amp;gt;&quot;</span>, data2: <span style="color: #cc66cc;">2</span>,
					label3:<span style="color: #ff0000;">&quot;item 3&quot;</span>, data3: <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#125;</span>;
	o.<span style="color: #006600;">my_date</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Date</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	o.<span style="color: #006600;">my_xml</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">XML</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	o.<span style="color: #006600;">recurse</span> = o;
&nbsp;
	ASDebugger.<span style="color: #006600;">debug_prop</span><span style="color: #66cc66;">&#40;</span>o<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>Before running the application, startup the ASDebugger. The ASDebugger comes in different flavors:</p>
<ul>
<li>In a .exe projector file;</li>
<li>In a .swf;</li>
<li>As an AIR application;</li>
<li>or you can even use the ASDebugger on this page!<span id="more-4"></span></li>
</ul>
<p>And here it is:</p>
<p><code>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ASDebugger_1546750038"
			class="flashmovie"
			width="270"
			height="300">
	<param name="movie" value="http://www.flexperiments.nl/asdebugger/ASDebugger.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.flexperiments.nl/asdebugger/ASDebugger.swf"
			name="fm_ASDebugger_1546750038"
			width="270"
			height="300">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></code></p>
<p>Use this swf to test it:</p>
<p><code>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_ASDebuggerExample_543130533"
			class="flashmovie"
			width="270"
			height="100">
	<param name="movie" value="http://www.flexperiments.nl/asdebugger/example/ASDebuggerExample.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.flexperiments.nl/asdebugger/example/ASDebuggerExample.swf"
			name="fm_ASDebuggerExample_543130533"
			width="270"
			height="100">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></code></p>
<p>Now, there are some limitations to this debugger. For instance, you cannot send MovieClips to it, it will simply always return &#8216;undefined&#8217;.</p>
<p>Also, there&#8217;s a limitation to the size of an object, it may no exceed more than 64k.</p>
<p>To download it, go to the <a href="http://labs.flexperiments.nl/asdebugger/">ASDebugger download page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://labs.flexperiments.nl/asdebugger-a-run-time-debugger-for-as3-projects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
