<?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>Nate Beck</title>
	<atom:link href="http://blog.natebeck.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.natebeck.net</link>
	<description>AIR, Flex / Flash, FMS, PushButton, Game... Developer</description>
	<lastBuildDate>Wed, 07 Sep 2011 21:24:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Going Mobile Slides from Flash Gaming Summit</title>
		<link>http://blog.natebeck.net/2011/07/going-mobile-slides-from-flash-gaming-summit/</link>
		<comments>http://blog.natebeck.net/2011/07/going-mobile-slides-from-flash-gaming-summit/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 03:18:39 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[Presentations]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=1312</guid>
		<description><![CDATA[Here are my slides from my presentation at Flash Gaming Summit at Casual Connect. Going mobile natebeck View more presentations from Nate Beck.]]></description>
			<content:encoded><![CDATA[<p>Here are my slides from my presentation at <a href="http://seattle.casualconnect.org/flashgaming.html">Flash Gaming Summit at Casual Connect</a>.</p>
<div style="width:600px" id="__ss_8740908"><strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/natebeck1/going-mobile-natebeck" title="Going mobile natebeck">Going mobile natebeck</a></strong><object id="__sse8740908" width="425" height="355"><param name="movie" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=goingmobilenatebeck-110731215808-phpapp02&#038;stripped_title=going-mobile-natebeck&#038;userName=natebeck1" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed name="__sse8740908" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=goingmobilenatebeck-110731215808-phpapp02&#038;stripped_title=going-mobile-natebeck&#038;userName=natebeck1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="600" height="500"></embed></object>
<div style="padding:5px 0 12px">View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/natebeck1">Nate Beck</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2011/07/going-mobile-slides-from-flash-gaming-summit/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flex SDK 4.5 doesn&#8217;t keep Embed Metadata</title>
		<link>http://blog.natebeck.net/2011/05/flex-sdk-4-5-doesnt-keep-embed-metadata/</link>
		<comments>http://blog.natebeck.net/2011/05/flex-sdk-4-5-doesnt-keep-embed-metadata/#comments</comments>
		<pubDate>Wed, 18 May 2011 16:23:35 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[4.5]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[Flex SDK]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=1285</guid>
		<description><![CDATA[Hey everyone, I&#8217;ve run into a bug with the released version of the Adobe Flex 4.5 SDK. The 4.5 version of the SDK does not respect keeping [Embed] metadata in your SWF. This is problematic because we use this metadata extensively in PushButton Engine. Take the following example into account: TestMetadata.as package &#123; import flash.display.Sprite;&#8230;]]></description>
			<content:encoded><![CDATA[<p>Hey everyone,</p>
<p>I&#8217;ve run into a bug with the released version of the Adobe Flex 4.5 SDK.  The 4.5 version of the SDK does not respect keeping [Embed] metadata in your SWF.  This is problematic because we use this metadata extensively in PushButton Engine.</p>
<p>Take the following example into account:</p>
<p><b>TestMetadata.as</b></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
    <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">utils</span>.<span style="color: #006600;">describeType</span>;
&nbsp;
    <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> TestMetadata <span style="color: #0066CC;">extends</span> Sprite
    <span style="color: #66cc66;">&#123;</span>
        <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> TestMetadata<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">var</span> typeInfo:<span style="color: #0066CC;">XML</span> = describeType<span style="color: #66cc66;">&#40;</span>TestClassWithEmbed<span style="color: #66cc66;">&#41;</span>;
            <span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span>typeInfo<span style="color: #66cc66;">&#41;</span>;
        <span style="color: #66cc66;">&#125;</span>
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p><b>TestClassWithEmbed.as</b></p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> TestClassWithEmbed
    <span style="color: #66cc66;">&#123;</span>
        <span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">&quot;assets/flip.png&quot;</span>, mimeType=<span style="color: #ff0000;">&quot;image/png&quot;</span> <span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
        <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> Flip:<span style="color: #000000; font-weight: bold;">Class</span>;
&nbsp;
        <span style="color: #66cc66;">&#91;</span>SomeMeta<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">&quot;assets/flip.png&quot;</span>, mimeType=<span style="color: #ff0000;">&quot;image/png&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
        <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> Test:<span style="color: #000000; font-weight: bold;">Class</span>;
    <span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>In version 4.1 of the Adobe Flex SDK, we get the following back from describeType.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Test&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Class&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;metadata</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;SomeMeta&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;source&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;assets/flip.png&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;mimeType&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;image/png&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/metadata<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;metadata</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;__go_to_definition_help&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;file&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;/projects/zaalabs/workspace/TestMetadata/src/TestClassWithEmbed.as&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;pos&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;243&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/metadata<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/variable<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Flip&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Class&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;metadata</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Embed&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;source&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;assets/flip.png&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;mimeType&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;image/png&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/metadata<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;metadata</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;__go_to_definition_help&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;file&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;/projects/zaalabs/workspace/TestMetadata/src/TestClassWithEmbed.as&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;pos&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;136&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/metadata<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/variable<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>However, in version 4.5 of the Adobe Flex SDK, you can see the Embed metadata is being omitted.  Same exact code, same compiler arguments, nothing has changed except the SDK.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Test&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Class&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;metadata</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;SomeMeta&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;source&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;assets/flip.png&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;mimeType&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;image/png&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/metadata<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;metadata</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;__go_to_definition_help&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;pos&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;243&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/metadata<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/variable<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;variable</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Flip&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;Class&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;metadata</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;__go_to_definition_help&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;pos&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;136&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/metadata<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/variable<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>As you can see, the Embed metadata is being stripped out, even though I explicitly set &#8220;&#8211;keep-as3-metadata+=Embed,SomeMeta&#8221; in the compiler.  Since I don&#8217;t believe that the Adobe Flash Player team would break describeType in a minor release, I&#8217;m led to believe that this is a bug that was introduced in the 4.5 version of mxmlc in the Flex SDK.</p>
<h2>Rant</h2>
<h3> :: UPDATE :: </h3>
<p>This seems to have been an isolated incident on this specific day, bugs.adobe.com has worked well for me many times since then.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>So I tried to do the &#8220;correct&#8221; thing and file this as a bug on bugs.adobe.com.  And would happily do so if the site worked.  In fact, in the time I&#8217;ve been waiting for bug.adobe.com to load and let me login&#8230; not only did I write the test case, but I wrote this entire blog post as well.</p>
<p><img src="http://blog.natebeck.net/wp-content/uploads/2011/05/Screen-shot-2011-05-18-at-9.09.19-AM.png" width="600" /><br />
<img src="http://blog.natebeck.net/wp-content/uploads/2011/05/Screen-shot-2011-05-18-at-9.12.32-AM.png" width="600" /><br />
<img src="http://blog.natebeck.net/wp-content/uploads/2011/05/Screen-shot-2011-05-18-at-9.06.37-AM.png" width="600" /><br />
<img src="http://blog.natebeck.net/wp-content/uploads/2011/05/Screen-shot-2011-05-18-at-9.10.01-AM.png" width="600" /></p>
<p><b>[UPDATE]</b><br />
I was finally able to file the bug, I think&#8230; it won&#8217;t pull it up. <a href="http://bugs.adobe.com/jira/browse/SDK-30485">SDK-30485</a>.</p>
<p>10 minutes to diagnose the issue&#8230;<br />
15 minutes to blog about it&#8230;<br />
45 minutes&#8230; and counting to file a bug through the proper channels.</p>
<p><img src="http://blog.natebeck.net/wp-content/uploads/2011/05/Screen-shot-2011-05-18-at-9.32.27-AM.png" width="600" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2011/05/flex-sdk-4-5-doesnt-keep-embed-metadata/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tip of the Day – Populate Version Number from an AIR Descriptor File in ANT</title>
		<link>http://blog.natebeck.net/2011/04/populate-version-number-from-an-air-descriptor-file-in-ant/</link>
		<comments>http://blog.natebeck.net/2011/04/populate-version-number-from-an-air-descriptor-file-in-ant/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 19:18:22 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tip of the day]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[ANT]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=1274</guid>
		<description><![CDATA[So I&#8217;ve seen this question pop up a few times. Can I grab a version number from the app-descriptor via ant and add that to the AIR filename? Anyone know? This is a pretty straight forward thing to do using Ant-Contrib tasks, that are publicly available. You can download the example files &#8211;> here. Let&#8217;s&#8230;]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve seen this question pop up a few times.</p>
<blockquote><p>Can I grab a version number from the app-descriptor via ant and add that to the AIR filename? Anyone know?</p></blockquote>
<p>This is a pretty straight forward thing to do using <a href="http://ant-contrib.sourceforge.net/">Ant-Contrib</a> tasks, that are publicly available.</p>
<p>You can download the example files &#8211;> <a href="http://blog.natebeck.net/wp-content/uploads/tipFiles/populateVersion.zip">here</a>.</p>
<p>Let&#8217;s take a quick look at the ANT script.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;project</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;PopulateVersion&quot;</span> <span style="color: #000066;">default</span>=<span style="color: #ff0000;">&quot;populateVersion&quot;</span> <span style="color: #000066;">basedir</span>=<span style="color: #ff0000;">&quot;.&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;taskdef</span> <span style="color: #000066;">resource</span>=<span style="color: #ff0000;">&quot;net/sf/antcontrib/antcontrib.properties&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
          <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pathelement</span> <span style="color: #000066;">location</span>=<span style="color: #ff0000;">&quot;./ant-contrib.jar&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/taskdef<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;property</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;app.descriptor&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;air-app.xml&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;target</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;populateVersion&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;Parsing application.version from ${app.descriptor}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;xmlproperty</span> <span style="color: #000066;">file</span>=<span style="color: #ff0000;">&quot;${app.descriptor}&quot;</span> <span style="color: #000066;">prefix</span>=<span style="color: #ff0000;">&quot;airApp.appdescriptor&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertycopy</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;versionNumber&quot;</span> </span>
<span style="color: #009900;">                  <span style="color: #000066;">from</span>=<span style="color: #ff0000;">&quot;airApp.appdescriptor.application.versionNumber&quot;</span> </span>
<span style="color: #009900;">                  <span style="color: #000066;">override</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo</span> <span style="color: #000066;">message</span>=<span style="color: #ff0000;">&quot;Parsed application version: ${versionNumber}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>  
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;propertyregex</span> <span style="color: #000066;">property</span>=<span style="color: #ff0000;">&quot;fileVersionNumber&quot;</span></span>
<span style="color: #009900;">                  <span style="color: #000066;">input</span>=<span style="color: #ff0000;">&quot;${versionNumber}&quot;</span></span>
<span style="color: #009900;">                  <span style="color: #000066;">regexp</span>=<span style="color: #ff0000;">&quot;\.&quot;</span></span>
<span style="color: #009900;">                  <span style="color: #000066;">replace</span>=<span style="color: #ff0000;">&quot;_&quot;</span></span>
<span style="color: #009900;">                  <span style="color: #000066;">casesensitive</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Version Number: ${versionNumber}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/echo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>                    
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;echo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>File Version Number: ${fileVersionNumber}<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/echo<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/target<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/project<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>As you can see it&#8217;s very straight forward to parse the version number out of the Application Descriptor.  The only other thing we do is us RegEx to change the periods in the version number to underscores to make for more friendly file names.</p>
<p>Using the same concept it is very easy to also populate a Version file that gets compiled into your application which can include build numbers, or other interesting things&#8230; but we&#8217;ll save that for another day.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2011/04/populate-version-number-from-an-air-descriptor-file-in-ant/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ignite Seattle 13</title>
		<link>http://blog.natebeck.net/2011/02/ignite-seattle-13/</link>
		<comments>http://blog.natebeck.net/2011/02/ignite-seattle-13/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 18:26:41 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[ZaaLabs]]></category>
		<category><![CDATA[Ignite Seattle]]></category>
		<category><![CDATA[Seeker]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=1260</guid>
		<description><![CDATA[I had the pleasure of speaking at Ignite Seattle 13 last night. It was a blast! Thanks everyone who showed up. My talk was titled, Searching for Adam Savage, and was based around a research project that I conducted called Seeker. The basic premise is this: Modern cell phones frequently include a camera and a&#8230;]]></description>
			<content:encoded><![CDATA[<p>I had the pleasure of speaking at <a href="http://www.igniteseattle.com/2011/01/speakers-for-ignite-seattle-13/">Ignite Seattle 13</a> last night.  It was a blast! Thanks everyone who showed up.</p>
<p><img src="http://blog.natebeck.net/wp-content/uploads/2011/02/ignite_seattle.jpg" /></p>
<p>My talk was titled, Searching for Adam Savage, and was based around a research project that I conducted called Seeker.  The basic premise is this:</p>
<p>Modern cell phones frequently include a camera and a GPS. Even if a GPS is not included, cell phone towers can be used to establish the location of the phone. Image formats include special headers that can be used to store this information, so called EXIF tags. In this talk, I described the process that was used to find the information that many consumers (including celebrities) unknowingly broadcast out on the internet.</p>
<p>The article that resulted from my research <a href="http://www.zaalabs.com/2010/07/finding-celebrity-locations-via-twitter/">can be found over at ZaaLabs</a>.</p>
<p>During the presentation one of my slides was missing, somehow creating the slides in Apple Keynote and then converting them to PowerPoint caused some issues.</p>
<p>So here is the slide that was missing.</p>
<p><a href="http://blog.natebeck.net/wp-content/uploads/2011/02/MissingSlide.jpg"><img width="600" src="http://blog.natebeck.net/wp-content/uploads/2011/02/MissingSlide.jpg" /></a></p>
<p>Also, Ben Huh of Cheezburger Network wants everyone to know that <a href="http://jobs.cheezburger.com/">they are hiring</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2011/02/ignite-seattle-13/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Developing games with PushButton Engine – Understanding the Difference Between UI and Game Simulation</title>
		<link>http://blog.natebeck.net/2011/02/the-difference-between-ui-and-game-simulation/</link>
		<comments>http://blog.natebeck.net/2011/02/the-difference-between-ui-and-game-simulation/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 06:19:28 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[PushButton]]></category>
		<category><![CDATA[Game Simulation]]></category>
		<category><![CDATA[Grunts Skirmish]]></category>
		<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[User Interface]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=1220</guid>
		<description><![CDATA[I&#8217;ve been trying to spend more and more time answering questions in the PushButton Engine community. I&#8217;ve been answering questions on the forums and in the community IRC channel. If you have questions about PushButton Engine, feel free to ask in either of those places. One of the really cool features that PushButton Engine has&#8230;]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been trying to spend more and more time answering questions in the PushButton Engine community.  I&#8217;ve been answering questions on the <a href="http://pushbuttonengine.com/forum/">forums</a> and in the <a href="http://pushbuttonengine.com/chat/">community IRC channel</a>.  If you have questions about PushButton Engine, feel free to ask in either of those places.</p>
<p>One of the really cool features that PushButton Engine has is the ability to <a href="http://pushbuttonengine.com/docs/05-XMLFormat.html">use XML to define</a> your entities and templates, and how to wire all of the components together.  It looks very much like MXML&#8230; (side-note: changing the level files to be compiled MXML is a feature we&#8217;ve discussed heavily and are considering doing in the future) which I think is causing a lot of confusion.</p>
<p>We get asked multiple times a week how to define a main menu, a high score screen, a tutorial screen, the list goes on and on&#8230; using PushButton Engine.  The answer is&#8230; <b>you don&#8217;t</b>.</p>
<h3>Terminology</h3>
<p>So let&#8217;s get some terminology out of the way, for purposes of this blog post, I&#8217;m going to call menus, tutorials, and everything in that bucket&#8230; the <b>User Interface</b> (or UI).  I&#8217;m also going to use the term <b>Game Simulation</b>, we&#8217;ll get to that in a moment.</p>
<p>What better way to explain these two concepts than to do so with some examples.</p>
<h2>User Interface</h2>
<p>Here is an example of UI in a game that we&#8217;re currently working on at <a href="http://www.zaalabs.com">ZaaLabs</a> along with <a href="http://pushbuttonlabs.com/">PushButton Labs</a>:</p>
<p><a href="http://blog.natebeck.net/wp-content/uploads/2011/02/MainMenu.jpg"><img src="http://blog.natebeck.net/wp-content/uploads/2011/02/MainMenu.jpg" width="600" /></a></p>
<p>This is the main menu to Grunts Skirmish.  There isn&#8217;t a single piece of PushButton Engine here on this screen&#8230; in fact&#8230; it&#8217;s 100% Flex 3&#8230; even using mx:State and mx:Transition.  Everything on here is UI.</p>
<h2>Game Simulation</h2>
<p>The Game Simulation is the actual rendering of the game, it&#8217;s what you play.  You don&#8217;t &#8220;play&#8221; the menu system.</p>
<p>Here is an example once you get into the playable part of Grunts&#8230; this is the Game Simulation:<br />
<a href="http://blog.natebeck.net/wp-content/uploads/2011/02/GruntsInGame.jpg"><img src="http://blog.natebeck.net/wp-content/uploads/2011/02/GruntsInGame.jpg" width="600" /></a></p>
<p>The Game Simulation is where we make use of PushButton Engine&#8230; animations via sprite sheets, process manager, renderers, scenes, components, entities, etc&#8230; all of the good stuff that PushButton Engine has to offer.</p>
<h2>Putting it all together</h2>
<p>Now&#8230; this doesn&#8217;t mean that you are limited to one or the other&#8230; the two work together to make your final game.  Using Grunts Skirmish again as an example&#8230; you&#8217;ll notice that we actually have UI elements layered on top of the Game Simulation.</p>
<p><a href="http://blog.natebeck.net/wp-content/uploads/2011/02/InGameSimulation.jpg"><img src="http://blog.natebeck.net/wp-content/uploads/2011/02/InGameSimulation.jpg" width="600" /></a></p>
<p><a href="http://blog.natebeck.net/wp-content/uploads/2011/02/InGameUI.jpg"><img src="http://blog.natebeck.net/wp-content/uploads/2011/02/InGameUI.jpg" width="600" /></a></p>
<p>As you can see&#8230; both pieces are needed to make a successful game.</p>
<p><a href="http://blog.natebeck.net/wp-content/uploads/2011/02/GameStart.jpg"><img src="http://blog.natebeck.net/wp-content/uploads/2011/02/GameStart.jpg" width="600" /></a></p>
<p>Just remember&#8230; <a href="http://pushbuttonengine.com/">PushButton Engine</a> is a framework for building simulations.</p>
<p>When you need help building your User Interface&#8230; there are tons and tons of UI Frameworks out there&#8230; for Grunts Skirmish we used Flex 3.</p>
<p>Here are a few of my favorites UI libraries:</p>
<ul>
<li><a href="http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK">Adobe Flex SDK</a></li>
<li><a href="http://www.minimalcomps.com/">Minimal Comps</a></li>
<li><a href="http://flightxd.com/">Flight XD</a></li>
<li><a href="http://reflex.io/">Reflex</a></li>
</ul>
<h2>Exception</h2>
<p>There are always exceptions&#8230; perhaps you want to build a menu system that plays like a game.  A fantastic example of this is <a href="http://armorgames.com/play/301/fancy-pants-adventures">Fancy Pants Adventures</a>.</p>
<p>Here is the menu system for the game.<br />
<a href="http://blog.natebeck.net/wp-content/uploads/2011/02/FancyPants2.jpg"><img src="http://blog.natebeck.net/wp-content/uploads/2011/02/FancyPants2.jpg" width="600" /></a></p>
<h2>Conclusion</h2>
<p>As you can see with Fancy Pants Adventures you&#8217;re <b>playing</b> the menu.  If you&#8217;re not playing&#8230; it&#8217;s probably not a simulation&#8230; this is ultimately the biggest difference between User Interface and Game Simulation.</p>
<p>For more information on using Flex with Pushbutton Engine, checkout my <a href="http://zaa.tv/2011/01/flexible-games-360-flex-san-jose-2010/">Flexible Games Video over on ZaaTV</a>.  The beginning is more of a PushButton Engine overview&#8230; skip towards the end for information on FlexSceneView and integrating the simulation with Flex UI Components.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2011/02/the-difference-between-ui-and-game-simulation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tip of the Day – Getting a SWF&#8217;s background color</title>
		<link>http://blog.natebeck.net/2010/12/tip-of-the-day-getting-a-swfs-background-color/</link>
		<comments>http://blog.natebeck.net/2010/12/tip-of-the-day-getting-a-swfs-background-color/#comments</comments>
		<pubDate>Thu, 30 Dec 2010 11:03:31 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Tip of the day]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ZaaLabs]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=1193</guid>
		<description><![CDATA[Recently at ZaaLabs, I&#8217;ve been working on a really cool tooling platform called Eden. One of the features that Eden has is a Screen Capture plugin. Eden can send a request to a remote SWF to return a bitmap of the stage. For example, here is Eden pulling a screen capture from HanClinto&#8217;s Platformer Starter&#8230;]]></description>
			<content:encoded><![CDATA[<p>Recently at <a href="http://www.zaalabs.com">ZaaLabs</a>, I&#8217;ve been working on a really cool tooling platform called Eden. One of the features that Eden has is a Screen Capture plugin. Eden can send a request to a remote SWF to return a bitmap of the stage.</p>
<p>For example, here is Eden pulling a screen capture from <a href="http://www.hanclinto.com">HanClinto&#8217;s Platformer Starter Kit</a>.</p>
<p><a href="http://blog.natebeck.net/wp-content/uploads/2010/12/ScreenCap.png" target="_blank"><img width="600" src="http://blog.natebeck.net/wp-content/uploads/2010/12/ScreenCap.png" /></a></p>
<p>Really cool! However, I quickly ran into an issue when I tried to take a screen capture of a more basic game.</p>
<p>On the right is the game running in Flash, and on the left is the screen capture.</p>
<p><a href="http://blog.natebeck.net/wp-content/uploads/2010/12/ScreenCapNoBg.png" target="_blank"><img width="600" src="http://blog.natebeck.net/wp-content/uploads/2010/12/ScreenCapNoBg.png" /></a></p>
<p>As you can see, my screen capture doesn&#8217;t include the green background.  So what happened?</p>
<p>Well it turns out the background color of a SWF isn&#8217;t actually part of the stage.  The background color that you set using the SWF Metadata tag, or set in Flash Professional is drawn directly by Flash Player.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package
<span style="color: #66cc66;">&#123;</span>	
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
&nbsp;
	<span style="color: #66cc66;">&#91;</span>SWF<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">backgroundColor</span>=<span style="color: #ff0000;">&quot;0x00FF00&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span> <span style="color: #808080; font-style: italic;">// &lt;--- How can I get this programmatically?</span>
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SwfBackgroundExample <span style="color: #0066CC;">extends</span> Sprite
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> SwfBackgroundExample<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>So I had a dilemma&#8230; how could I access the backgroundColor of the SWF?  I scoured the API docs, I asked the Twitter-sphere, but no luck.  All I learned was that the backgroundColor was hard coded into the bytes of the SWF.  So I decided that&#8217;s where I needed to look for it.</p>
<h3>SwfData to the rescue.</h3>
<p>I read up on the <a href="http://www.adobe.com/content/dam/Adobe/en/devnet/swf/pdf/swf_file_format_spec_v10.pdf">Adobe SWF specification</a>, and consulted with my good friend <a href="http://www.jamesward.com/">James Ward</a>.  He pointed me in the direction of loaderInfo.bytes, which gives us access to the bytes of the currently running SWF.</p>
<p>After a few hours, I had a fun little class I like to call SwfData, which parsed the background color out of the currently running SWF&#8217;s bytes&#8230; as well as some other fun things.  Here&#8217;s how you use it:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">package
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">import</span> com.<span style="color: #006600;">zaalabs</span>.<span style="color: #006600;">utils</span>.<span style="color: #006600;">SwfData</span>;
&nbsp;
	<span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;
&nbsp;
	<span style="color: #66cc66;">&#91;</span>SWF<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">backgroundColor</span>=<span style="color: #ff0000;">&quot;0x969696&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SwfDataExample <span style="color: #0066CC;">extends</span> Sprite
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> SwfDataExample<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #0066CC;">data</span>:SwfData = <span style="color: #000000; font-weight: bold;">new</span> SwfData<span style="color: #66cc66;">&#40;</span>loaderInfo.<span style="color: #006600;">bytes</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;version <span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>+<span style="color: #0066CC;">data</span>.<span style="color: #0066CC;">version</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;frameRate <span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>+<span style="color: #0066CC;">data</span>.<span style="color: #006600;">frameRate</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;frameCount <span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>+<span style="color: #0066CC;">data</span>.<span style="color: #006600;">frameCount</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;fileLength <span style="color: #000099; font-weight: bold;">\t</span>&quot;</span>+<span style="color: #0066CC;">data</span>.<span style="color: #006600;">fileLength</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;bgColor <span style="color: #000099; font-weight: bold;">\t</span>0x&quot;</span>+<span style="color: #0066CC;">data</span>.<span style="color: #0066CC;">backgroundColor</span>.<span style="color: #0066CC;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">16</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;
		<span style="color: #66cc66;">&#125;</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>Using SwfData, I could now use the background color as the fill color of my BitmapData class.</p>
<p><a href="http://blog.natebeck.net/wp-content/uploads/2010/12/ScreenCapWBg.png" target="_blank"><img width="600" src="http://blog.natebeck.net/wp-content/uploads/2010/12/ScreenCapWBg.png" /></a></p>
<h3>Get It Here</h3>
<p>SwfData is <a href="https://github.com/ZaaLabs/ZaaUtils/blob/master/license.txt">MIT licensed</a> under ZaaUtils (do with it what you will).  It is <a href="https://github.com/ZaaLabs/ZaaUtils">available on GitHub</a></p>
<p>Questions, comments, complaints are all welcome below.</p>
<h3>== UPDATE ==</h3>
<p>So I just found out that <a href="http://wahlers.com.br/claus/blog/">Claus Wahlers</a> has an awesome, more feature complete version of an AS3 SWF parser.  It&#8217;s also <a href="https://github.com/claus/as3swf/blob/master/src/com/codeazur/as3swf/SWF.as">available on GitHub</a>.  I&#8217;m still going to keep SwfData up since it&#8217;s much more specific to getting the background color of the swf.  If you need more features, use as3swf by Claus, it&#8217;s very well done.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2010/12/tip-of-the-day-getting-a-swfs-background-color/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>RIARadio, GangstaCast, TheFlexShow and Tech News Today&#8230;</title>
		<link>http://blog.natebeck.net/2010/07/riaradio-gangstacast-theflexshow-and-tech-news-today/</link>
		<comments>http://blog.natebeck.net/2010/07/riaradio-gangstacast-theflexshow-and-tech-news-today/#comments</comments>
		<pubDate>Wed, 21 Jul 2010 19:01:00 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[PushButton]]></category>
		<category><![CDATA[ZaaLabs]]></category>
		<category><![CDATA[Flex Show]]></category>
		<category><![CDATA[GangstaCast]]></category>
		<category><![CDATA[Podcasts]]></category>
		<category><![CDATA[RIARadio]]></category>
		<category><![CDATA[Tech New Today]]></category>
		<category><![CDATA[TWiT]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=1182</guid>
		<description><![CDATA[Recently I&#8217;ve had the opportunity to participate in a few podcasts, and they all seem to have come out this week. Check them out: The Flex Show &#8211; Episode 115 RIARadio &#8211; Episode 17 GangstaCast Episode 1: Celebrity Stalker Edition Also, I was thrilled to find out that I was mentioned on TWiT.tv&#8217;s Tech News&#8230;]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve had the opportunity to participate in a few podcasts, and they all seem to have come out this week.  Check them out:
<p><a href="http://www.theflexshow.com/blog/index.cfm/2010/7/21/Pushbutton-Engine-with-Ben-Garney-and-Nate-Beck-The-Flex-Show-Episode-115">The Flex Show &#8211; Episode 115</a></p>
<p><a href="http://insideria.com/2010/07/riaradio-episode-17-episode-17.html">RIARadio &#8211; Episode 17</a></p>
<p><a href="http://www.flexgangsta.com/?p=54">GangstaCast Episode 1: Celebrity Stalker Edition</a></p>
<p>Also, I was thrilled to find out that I was mentioned on TWiT.tv&#8217;s Tech News Today for an article I wrote regarding tracking celebrities by scraping exif data from photos uploaded to TwitPic, yfrog, TweetPhoto and TwitGoo. &nbsp;The part when they talk about the article is about 15 minutes into the episode.</p>
<p><a href="http://www.twit.tv/tnt34">Tech News Today 34: Take Off Your Pants, America</a></p>
<p><a href="http://www.zaalabs.com/2010/07/finding-celebrity-locations-via-twitter/">Article on ZaaLabs</a></p>
<p>So all in all, it&#8217;s been a very interesting week.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2010/07/riaradio-gangstacast-theflexshow-and-tech-news-today/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tip of the Day &#8211; Updating to Flash Builder 4.0.1</title>
		<link>http://blog.natebeck.net/2010/07/tip-of-the-day-updating-to-flash-builder-4-0-1/</link>
		<comments>http://blog.natebeck.net/2010/07/tip-of-the-day-updating-to-flash-builder-4-0-1/#comments</comments>
		<pubDate>Wed, 07 Jul 2010 20:00:00 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[Tip of the day]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR 2]]></category>
		<category><![CDATA[Flash Builder]]></category>
		<category><![CDATA[Flash Player 10.1]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=1060</guid>
		<description><![CDATA[I recently posted about Building AIR 2 applications with Flash Builder 4. There is now an update for Flash Builder 4 which downloads and installs the Adobe Flex 4.1 SDK. According to Renaun Erickson&#8217;s post, Flex 4.1 includes Flash Player 10.1 and AIR 2.0. Now, if you&#8217;re like me and loathe the Adobe Updater&#8230; then&#8230;]]></description>
			<content:encoded><![CDATA[<p>I recently posted about <a href="http://blog.natebeck.net/2010/06/tip-of-the-day-building-air-2-applications-with-flash-builder-4/">Building AIR 2 applications with Flash Builder 4</a>.</p>
<p>There is now an update for Flash Builder 4 which downloads and installs the Adobe Flex 4.1 SDK. According to <a href="http://renaun.com/blog/2010/06/flex-4-1-includes-flash-player-10-1-and-air-2-0/">Renaun Erickson&#8217;s post</a>, Flex 4.1 includes Flash Player 10.1 and AIR 2.0.</p>
<p>Now, if you&#8217;re like me and loathe the Adobe Updater&#8230; then you probably turned off the Adobe Updater notifications.</p>
<p>So here&#8217;s how to update Flash Builder to version 4.0.1 which includes the 4.1 SDK.</p>
<p>Go to Help &gt; Search for Flash Builder Updates&#8230;</p>
<p><img src="http://blog.natebeck.net/wp-content/uploads/2010/07/Screen-shot-2010-07-07-at-10.19.25-AM.png" alt="Help - Search for Flash Builder Updates...">
<p>This will launch the Adobe Application Manager and then proceed to update your software, including Flash Builder 4.</p>
<h3>== UPDATE ==</h3>
<div>If you don&#8217;t see a Flash Builder update available in Adobe Application Manager, you can <a href="http://www.adobe.us/support/flex/downloads_updaters.html#flex4">download the standalone updater from Adobe.</a></div>
<p><img src="http://blog.natebeck.net/wp-content/uploads/2010/07/Screen-shot-2010-07-07-at-9.59.30-AM.png" alt="Update Progress" width="600"></p>
<p><img src="http://blog.natebeck.net/wp-content/uploads/2010/07/Screen-shot-2010-07-07-at-10.12.33-AM.png" alt="Update Complete" width="600">
<p>Once the update is completed you can see Flash Builder is now at version 4.0.1.</p>
<p><img src="http://blog.natebeck.net/wp-content/uploads/2010/07/Screen-shot-2010-07-07-at-12.50.27-PM.png" alt="Flash Builder 4.0.1 about screen" width="600">
<p>And you now have the option for Flex 4.1 as an installed Flex SDK. You can use Flex 4.1 to develop against Flash Player 10.1 and Adobe AIR 2.0.</p>
<p><img src="http://blog.natebeck.net/wp-content/uploads/2010/07/Screen-shot-2010-07-07-at-12.45.40-PM.png" alt="4.1 is now avaliable" width="600"></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2010/07/tip-of-the-day-updating-to-flash-builder-4-0-1/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Tip of the Day &#8211; Building AIR 2 applications with Flash Builder 4</title>
		<link>http://blog.natebeck.net/2010/06/tip-of-the-day-building-air-2-applications-with-flash-builder-4/</link>
		<comments>http://blog.natebeck.net/2010/06/tip-of-the-day-building-air-2-applications-with-flash-builder-4/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 00:06:37 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tip of the day]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[AIR 2]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=1013</guid>
		<description><![CDATA[:: Update :: This process has gotten much easier, you can now use software update to get AIR 2 as well as Flash Player 10.1 in Flash Builder&#8230; check out this post. Adobe AIR 2 and Flash Player 10.1 were released on June 10th, 2010. It&#8217;s an exciting time. This weekend I decided to do&#8230;]]></description>
			<content:encoded><![CDATA[<h3>:: Update ::</h3>
<p>This process has gotten much easier, you can now use software update to get AIR 2 as well as Flash Player 10.1 in Flash Builder&#8230; check out <a href="http://blog.natebeck.net/2010/07/tip-of-the-day-updating-to-flash-builder-4-0-1/">this post</a>.</p>
<hr /></p>
<p>Adobe AIR 2 and Flash Player 10.1 were released on June 10th, 2010.  It&#8217;s an exciting time.  This weekend I decided to do some development on AIR 2 to try out some of the new features.</p>
<p>On the <a href="http://blogs.adobe.com/air/2010/06/introducing_air_2.html">Adobe AIR Team blog&#8217;s post</a> they mention that the free standalone download of the AIR 2 SDK will be available on Tuesday, June 15th&#8230; but I wanted to play with the SDK today.</p>
<p><del datetime="2010-07-07T16:52:11+00:00">So I went over to the Adobe AIR labs page and downloaded the AIR 2 Release Candidate SDK which is &#8211;> <a href="http://labs.adobe.com/downloads/air2.html">here</a>.</del></p>
<p>You can download the released SDK from &#8211;> <a href="http://www.adobe.com/cfusion/entitlement/index.cfm?e=airsdk">here</a></p>
<p>After downloading the Adobe AIR 2 SDK, I followed the directions on the <a href="http://www.adobe.com/support/documentation/en/air/2/releasenotes_developers.html#h">release notes</a> which explained how to overlay the AIR 2 SDK with my current version of Flex 4.</p>
<p>I&#8217;m on a mac, here are the commands I used in Terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>Adobe\ Flash\ Builder\ <span style="color: #000000;">4</span><span style="color: #000000; font-weight: bold;">/</span>sdks<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">ls</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-r</span> 4.0.0 4.0.0AIR2
<span style="color: #c20cb9; font-weight: bold;">ls</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> ~<span style="color: #000000; font-weight: bold;">/</span>Downloads<span style="color: #000000; font-weight: bold;">/</span>air2_rc1_sdk_mac_051110.tbz2 4.0.0AIR2
<span style="color: #7a0874; font-weight: bold;">cd</span> 4.0.0AIR2
<span style="color: #c20cb9; font-weight: bold;">tar</span> jxvf air2_rc1_sdk_mac_051110.tbz2</pre></div></div>

<p>I then added a new SDK to the installed SDK&#8217;s inside of Flash Builder:<br />
<img width="600" src="http://blog.natebeck.net/wp-content/uploads/2010/06/Screen-shot-2010-06-12-at-4.40.04-PM.png" alt="Installed SDK's in Flash Builder 4"  /></p>
<p>Now, I already had an Adobe AIR application project set up, and I switched over to the new SDK the I installed:<br />
<img width="600" src="http://blog.natebeck.net/wp-content/uploads/2010/06/Screen-shot-2010-06-12-at-4.44.22-PM.png" alt="Switched over to Flex 4.0 (AIR 2)" /></p>
<p>However, when I tried to run my AIR application, I ran into this error:</p>

<div class="wp_syntax"><div class="code"><pre class="error" style="font-family:monospace;">VerifyError: Error #1014: Class IIMEClient could not be found.
&nbsp;
	at flash.display::MovieClip/nextFrame()
	at mx.managers::SystemManager/deferredNextFrame()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:267]
	at mx.managers::SystemManager/preloader_preloaderDocFrameReadyHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2460]
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at mx.preloaders::Preloader/timerHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\preloaders\Preloader.as:488]
	at flash.utils::Timer/_timerDispatch()
	at flash.utils::Timer/tick()</pre></div></div>

<p>After doing a bit of research I found out that my Adobe AIR project&#8217;s application descriptor file wasn&#8217;t using the correct namespace for the AIR 2.0 SDK.  According to the <a href="http://www.adobe.com/support/documentation/en/air/2/releasenotes_developers.html">Adobe AIR 2 Release Notes</a>:</p>
<blockquote><p>You must update your application descriptor file to the 2.0 namespace in order to access the new AIR 2 APIs and behavior. If your application does not require the new AIR 2 APIs and behavior, you are not required to update the namespace from 1.x based namespace. To update the namespace, change the xmlns attribute in your application descriptor to: http://ns.adobe.com/air/application/2.0</p></blockquote>
<p>Sure enough, I hadn&#8217;t changed my namespace from AIR 1.5.3 to AIR 2.<br />
<img src="http://blog.natebeck.net/wp-content/uploads/2010/06/Screen-shot-2010-06-12-at-5.01.15-PM.png" alt="" /></p>
<p> I made the change in the descriptor file, and now everything works perfectly.<br />
<img src="http://blog.natebeck.net/wp-content/uploads/2010/06/Screen-shot-2010-06-12-at-5.01.30-PM.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2010/06/tip-of-the-day-building-air-2-applications-with-flash-builder-4/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Load 40 image formats into Flash. Oh, and it&#8217;s open source.</title>
		<link>http://blog.natebeck.net/2010/04/load-40-image-formats-into-flash-oh-and-its-open-source/</link>
		<comments>http://blog.natebeck.net/2010/04/load-40-image-formats-into-flash-oh-and-its-open-source/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 23:42:10 +0000</pubDate>
		<dc:creator>Nate Beck</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ZaaLabs]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[ZaaIL]]></category>

		<guid isPermaLink="false">http://blog.natebeck.net/?p=986</guid>
		<description><![CDATA[For for those who don&#8217;t know, I&#8217;m one of two people behind ZaaLabs (the other being Aaron Boushley). Today we released ZaaIL, an Adobe Alchemy port of DevIL an open source C image library. Built in image support of Adobe Flash Player limits you to 3 image formats: gif, jpg and png. While this has&#8230;]]></description>
			<content:encoded><![CDATA[<p>For for those who don&#8217;t know, I&#8217;m one of two people behind <a href="http://www.zaalabs.com">ZaaLabs</a> (the other being <a href="http://www.twitter.com/boushley">Aaron Boushley</a>).  Today we released ZaaIL, an <a href="http://labs.adobe.com/technologies/alchemy/">Adobe Alchemy</a> port of <a href="http://openil.sourceforge.net/">DevIL</a> an open source C image library.</p>
<p>Built in image support of Adobe Flash Player limits you to 3 image formats: gif, jpg and png.  While this has worked well for many, many years&#8230; I recently have needed to expand the types of formats that I could use in Flash Player.  I should also note that you can absolutely add support for these formats directly in ActionScript using ByteArray.  For example Mike Chambers blogged about an <a href="http://www.mikechambers.com/blog/2009/09/17/parsing-and-displaying-bmp-files-via-actionscript/">AS3 BMP parser</a>.</p>
<p>I was originally looking for support for TGA, BMP and PSD, when my friend Ben pointed me to DevIL and challenged me to port it using Alchemy.</p>
<p>Porting C code using Alchemy is not a very straight forward process, but between Aaron and I&#8230; and with help from <a href="http://www.coderhump.com">Ben Garney</a> and <a href="http://www.waxpraxis.org">Branden Hall</a>&#8230; worked our way through it.  We plan on a series of blog posts discussing the process of using Alchemy in detail.  Hopefully we can garner enough interest in the community around Alchemy to get Adobe to continue work on it.</p>
<p>ZaaIL is being released as open source software (MIT if you&#8217;re interested).  We will post it all on GitHub when we get the chance.</p>
<p><strong>[sidenote]</strong><br />
I have been asked by a few people if I think Adobe should expand from their three image formats and use something like DevIL in Flash Player&#8230; I don&#8217;t think they should.  Adobe has given us the tools to create really cool things such as ZaaIL.  I&#8217;d rather the Flash Player team focus on things I find way more important&#8230; such as 3D support, mobile performance, hardware accelerated graphics, etc&#8230;<br />
<strong>[/sidenote]</strong></p>
<p>ZaaIL allows developers to now to load more that <a href="http://www.zaalabs.com/2010/04/introducing-zaail-40-image-format-support-for-flash/">40 different image types</a>&#8230; go ahead give it a try, I particularly like using a PSD file or cover art embedded into an MP3 (<a href="http://zaalabs.com/demo/TestZaaIL/srcview/index.html">View source</a> is enabled):</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_TestZaaIL_285724496"
			class="flashmovie"
			width="600"
			height="550">
	<param name="movie" value="http://zaalabs.com/demo/TestZaaIL/TestZaaIL.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://zaalabs.com/demo/TestZaaIL/TestZaaIL.swf"
			name="fm_TestZaaIL_285724496"
			width="600"
			height="550">
	<!--<![endif]-->
		
<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>
<p>More information can be found over at <a href="http://www.zaalabs.com">ZaaLabs</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.natebeck.net/2010/04/load-40-image-formats-into-flash-oh-and-its-open-source/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

