<?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>nothing yet &#124; jason madsen &#187; Flash</title>
	<atom:link href="http://knomedia.com/blog/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://knomedia.com/blog</link>
	<description>ActionScript, Flex, Flash thoughts</description>
	<lastBuildDate>Sat, 24 Jul 2010 17:07:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>ActionScript AIR Projects In Flash Builder</title>
		<link>http://knomedia.com/blog/2010/05/11/actionscript-air-projects-in-flash-builder/</link>
		<comments>http://knomedia.com/blog/2010/05/11/actionscript-air-projects-in-flash-builder/#comments</comments>
		<pubDate>Tue, 11 May 2010 18:54:36 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Builder]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=409</guid>
		<description><![CDATA[How to build an ActionScript AIR project using Flash Builder]]></description>
			<content:encoded><![CDATA[<p>I have been using Flex Builder ( and now Flash Builder ) as my ActionScript editor for a few years now.  I have put together a nice little workflow for designing in the Flash IDE, while developing, managing, and compiling my projects in Flash Builder.  When it came to working with AIR however there was a slight hiccup.  In Flash Builder, ( or  previous versions of Flex Builder ) there is no option for an ActionScript based (i.e. not Flex) AIR project.</p>
<p>I have seen a few workarounds, but none as simple as a tip I overheard on Twitter from <a href="http://twitter.com/__ted__/">Ted Patrick</a>.  So here it is, either read on, or watch a quick two minute <a href="http://knomedia.com/videos/video.php?id=1">screen-cast</a> I put together. </p>
<p>1.  Create a new Flex Project in Flash Builder.</p>
<p>2.  In the New Flex Project Wizard, give your project a name</p>
<p>3.  Choose Desktop (runs in Adobe AIR)</p>
<p>4.  Select &#8220;Next >&#8221; in the wizard</p>
<p>5.  Still in the Wizard click &#8220;Next >&#8221; again to bypass the Ouptut folder ( you can change it if you feel so inclined )</p>
<p>6.  Still in the Wizard change the file extension of your Main application file from .mxml to .as</p>
<p>7.  Select Finish</p>
<p>When you compile, and run the application in ADL, you won&#8217;t actually see the native window.  Here is where the tip from Ted Patrick comes in.  In your application-descriptor.xml file, change the visible tag to true.  Compile and run.  You should have a nice native window showing up.  You can set the initial width, height, backgroundColor, and frameRate using the [SWF] annotation / meta-tag.</p>
<p>Optionally, if you would rather wait to have the native window be visible, you can do so using ActionScript by setting the visible property of the nativeWindow instance of the stage like so:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">nativeWindow</span>.<span style="color: #0066CC;">visible</span> = <span style="color: #000000; font-weight: bold;">true</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2010/05/11/actionscript-air-projects-in-flash-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Camp Atlanta</title>
		<link>http://knomedia.com/blog/2009/08/25/flash-camp-atlanta/</link>
		<comments>http://knomedia.com/blog/2009/08/25/flash-camp-atlanta/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 19:23:21 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Camp]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=298</guid>
		<description><![CDATA[A couple of things fell together for me in the last few days, and I started thinking about attending Flash Camp Atlanta. I posted on twitter that I was trying to work things out to attend. Turns out an email from David Tucker was just the motivation I needed, and I am officially going. As [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of things fell together for me in the last few days, and I started thinking about attending <a href="http://events.universalmind.com/page.cfm/flash-camp-atlanta-2009">Flash Camp Atlanta</a>.  I posted on twitter that I was trying to work things out to attend.  Turns out an email from David Tucker was just the motivation I needed, and I am officially going.  As part of that, I was asked to help out during the Introductory Session by giving a &#8220;Introduction To Flex&#8221; presentation.  There are some great speakers lined up for this camp.  You can see a listing of speakers and the schedule <a href="http://events.universalmind.com/page.cfm/flash-camp-atlanta-2009/schedule-1">here</a>.</p>
<p>I&#8217;m excited to be going to ATL.  The last Adobe event I attended there was the &#8220;On Air Bus Tour&#8221; a few years back.  My impression of the Flash / Flex community there has always been a good one, and based on some recent Twitter chatter it seems that there are over 200 tickets sold.  Should be a great event.  If you are in the area, or want to get away for a few days it looks like there are still <a href="http://flashcampatlanta.eventbrite.com/"> tickets available</a>.</p>
<p>See you there.</p>
<p>Jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2009/08/25/flash-camp-atlanta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing the DocBuilder</title>
		<link>http://knomedia.com/blog/2008/12/09/introducing-the-docbuilder/</link>
		<comments>http://knomedia.com/blog/2008/12/09/introducing-the-docbuilder/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 01:44:38 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=174</guid>
		<description><![CDATA[A few years ago, I built a simple extension for the Flash IDE that would auto generate class files for me. I used it for a while, but shortly there after moved to Flex Builder as my editor. At the University, the OOP course I teach, starts out in the Flash IDE for a few [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://knomedia.com/blog/wp-content/uploads/2008/12/docbuilder-300x250.png" alt="DocBuilder" width="300" height="250" class="alignleft size-full wp-image-130" />A few years ago, I built a simple extension for the Flash IDE that would auto generate class files for me.  I used it for a while, but shortly there after moved to Flex Builder as my editor.  At the University, the OOP course I teach, starts out in the Flash IDE for a few weeks, and then moves to using Flex Builder as an editor for ActionScript projects.</p>
<p>Lately I&#8217;ve just really dreaded the Flash editor.  I realize that it could come off as spoiled, but I really dislike typing out the usual skeleton code to get a class file started.  Tonight I decided that I&#8217;d had enough, so while the students were working on projects, I decided to update my extension.  I call it the DocBuilder.  It asks you for the package, class name, and what class you would like to extend.  It then asks you to save the file in the appropriate directory to match the package.  Viola!!!!  Stub code generated.</p>
<p>Here is a screen shot of the outputted class skeleton:</p>
<p><img src="http://knomedia.com/blog/wp-content/uploads/2008/12/stub_code.png" alt="" title="stub_code" width="477" height="343" class="alignleft size-full wp-image-185" /></p>
<p>Feel free to download the extension from <a href='http://knomedia.com/blog/wp-content/uploads/2008/12/docbuildermxp.zip'>here</a>.</p>
<p><b>Update:</b> I found and fixed a small issue where the help button gave an error.  The linked file above is the latest version and seems to be working well.</p>
<p>jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/12/09/introducing-the-docbuilder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PixelBlitz Engine Released</title>
		<link>http://knomedia.com/blog/2008/08/25/pixelblitz-engine-released/</link>
		<comments>http://knomedia.com/blog/2008/08/25/pixelblitz-engine-released/#comments</comments>
		<pubDate>Mon, 25 Aug 2008 13:27:03 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=48</guid>
		<description><![CDATA[Norm Soule has released v1.0 of his new PixelBlitz Engine. It is a system for utilizing BitmapData to represent your MovieClips and Sprites. There are several built in features (layers, pixel level collision detection, etc) but the most impressive reason for using it is the speed. There are several demos, full documentation, and commented examples. [...]]]></description>
			<content:encoded><![CDATA[<a href="http://www.normsoule.com/?p=59"><img src="http://knomedia.com/blog/wp-content/uploads/2008/08/ixlblitz_logo1.jpg" alt="PixelBlitz Engine" title="ixlblitz_logo1" width="275" height="71" class="size-full wp-image-49" /></a>
<p>Norm Soule has released v1.0 of his new <a href="http://www.normsoule.com/?p=59">PixelBlitz Engine</a>. It is a system for utilizing BitmapData to represent your MovieClips and Sprites.  There are several built in features (layers, pixel level collision detection, etc) but the most impressive reason for using it is the speed.  There are several demos, full documentation, and commented examples.  Definitely something to look at for highly interactive content, or game development.  As I get into it a bit deeper I will put together a more detailed review and an example or two.  At first glance this seems REALLY impressive.</p>
<p>jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/08/25/pixelblitz-engine-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AMFPHP: Brimelow does it again</title>
		<link>http://knomedia.com/blog/2008/08/05/amfphp-brimelow-does-it-again/</link>
		<comments>http://knomedia.com/blog/2008/08/05/amfphp-brimelow-does-it-again/#comments</comments>
		<pubDate>Tue, 05 Aug 2008 16:32:58 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[amfphp]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=38</guid>
		<description><![CDATA[With the Flash / Flex community buzzing about Adobe&#8217;s partnering with the PHP Zend framework, Lee Brimelow has put up two fantastic introductions to using AMFPHP within Flash at theFlashBlog.com. Both of the video screen cast are geared towards getting developers familiar with using AMFPHP, and as usual are quick, to the point, and efficient. [...]]]></description>
			<content:encoded><![CDATA[<p>With the Flash / Flex community buzzing about <a href='http://www.forta.com/blog/index.cfm/2008/7/31/Adobe-And-Zend-Partnering-To-Give-PHP-Developers-Some-AMF-Love'>Adobe&#8217;s partnering with the PHP Zend framework</a>, Lee Brimelow has put up two fantastic introductions to using <a href='http://www.amfphp.org/'>AMFPHP</a> within Flash at <a href='http://theflashblog.com/?p=418'>theFlashBlog.com</a>.  Both of the video screen cast are geared towards getting developers familiar with using AMFPHP, and as usual are quick, to the point, and efficient.  Absolutely worth a look.</p>
<p>Jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/08/05/amfphp-brimelow-does-it-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UIMovieClip Custom Events</title>
		<link>http://knomedia.com/blog/2008/07/25/uimovieclip-custom-events/</link>
		<comments>http://knomedia.com/blog/2008/07/25/uimovieclip-custom-events/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 18:32:10 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flash Components]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://knomedia.com/blog/?p=14</guid>
		<description><![CDATA[I&#8217;ve been using the Flex Integration Kit to create my own custom components in Flash for use in Flex lately. Coming from an all ActionScript (not necessarily MXML) background there are a few things to watch for. One of them being Custom Events in your newly created component. In order for Flex to recognize your [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using the <a href="http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&amp;loc=en_us&amp;extid=1273018">Flex Integration Kit</a> to create my own custom components in Flash for use in Flex lately.  Coming from an all ActionScript (not necessarily MXML) background there are a few things to watch for.  One of them being Custom Events in your newly created component.</p>
<p>In order for Flex to recognize your Custom Event you need to include the event meta data in your AS Class file.  For example, in an AS setting your class could fire off an event like so:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> updateHandler<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<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> evt:MyEvent = <span style="color: #000000; font-weight: bold;">new</span> MyEvent<span style="color: #66cc66;">&#40;</span>MyEvent.<span style="color: #006600;">VOLUME</span><span style="color: #66cc66;">&#41;</span>;
    evt.<span style="color: #006600;">volume</span> =<span style="color: #808080; font-style: italic;">//some volume value;</span>
    <span style="color: #0066CC;">this</span>.<span style="color: #006600;">dispatchEvent</span><span style="color: #66cc66;">&#40;</span>evt<span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>In an all ActionScript setting this works fine.  However when you compile this UIMovieClip into a swc file and use it in a Flex Project, Flex has no way to recognize the MyEvent.VOLUME.  In the Flex Editor it won&#8217;t appear as a code hint.  If you manually force it into the MXML, you&#8217;ll get an error.  In order to allow Flex to know of the event you will need to include some Event meta data at the top of your ActionScript Class.   For example:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&#91;</span>Event <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">name</span>=<span style="color: #ff0000;">&quot;volume&quot;</span>, <span style="color: #0066CC;">type</span>=<span style="color: #ff0000;">&quot;com.knomedia.events.MyEvent&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> VolumeControl <span style="color: #0066CC;">extends</span> UIMovieClip
<span style="color: #66cc66;">&#123;</span>
    <span style="color: #808080; font-style: italic;">//Class members here</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>
The meta data needs the &#8216;name&#8217; of the Event.  This is the string literal that the event constant holds.  In this case MyEvent.VOLUME holds the value &#8220;volume&#8221;.  The type attribute is the fully qualified name of your Custom Event Class.  The placement of the meta data is important, it needs to be on the line above your class declaration.  Once you have that in place you can compile your swc.</p>
<p>My only beef with the technique is that you need to use the actual string literal.  I understand the need (for ease of use in MXML), but I am more comfortable using class constants of the Event Class&#8230; Anyway.</p>
<p>In MXML you can now set the volume attribute to listen for the event to fire:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;"><span style="color: #7400FF;">&lt;swc:VolumeControl</span> id=<span style="color: #ff0000;">&quot;vol&quot;</span> volume=<span style="color: #ff0000;">&quot;{volumeHandler(event);}&quot;</span> <span style="color: #7400FF;">/&gt;</span></span></pre></div></div>

<p>The switch from all ActionScript to MXML is pretty painless.  Occasionally a small issue like this will make you feel stupid, but overall it isn&#8217;t a big jump.</p>
<p>Jason</p>
]]></content:encoded>
			<wfw:commentRss>http://knomedia.com/blog/2008/07/25/uimovieclip-custom-events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
