<?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>CraigSimpson.net &#187; Flash</title>
	<atom:link href="http://craigsimpson.net/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://craigsimpson.net</link>
	<description>Flash &#38; Flex Development</description>
	<lastBuildDate>Thu, 30 Apr 2009 01:47:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WTF? Firefox!</title>
		<link>http://craigsimpson.net/2009/04/wtf-firefox/</link>
		<comments>http://craigsimpson.net/2009/04/wtf-firefox/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 01:47:41 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=407</guid>
		<description><![CDATA[You won&#8217;t hear me often say this, but what is Mozilla&#8217;s deal?  The last couple of days I&#8217;ve had to run multiple updates a few days straight?  Have they done proper testing before releasing? This is starting to get on my nerves. My thought is let the first developer/ dev team / open [...]]]></description>
			<content:encoded><![CDATA[<p>You won&#8217;t hear me often say this, but what is Mozilla&#8217;s deal?  The last couple of days I&#8217;ve had to run multiple <a href="http://www.webmonkey.com/blog/Firefox_Update_Patches_Critical_Security_Flaws" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.webmonkey.com/blog/Firefox_Update_Patches_Critical_Security_Flaws');">updates</a> a few days straight?  Have they done proper testing before releasing? This is starting to get on my nerves. My thought is let the first developer/ dev team / open source project that has never done that throw the first stone. End of Rant. Don&#8217;t worry I still love you firefox!</p>
]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/04/wtf-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another use for &#8216;this&#8217;</title>
		<link>http://craigsimpson.net/2009/03/another-use-for-this/</link>
		<comments>http://craigsimpson.net/2009/03/another-use-for-this/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 03:34:51 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=393</guid>
		<description><![CDATA[So just as I was looking over the lase post about &#8216;this&#8217;.  I realized that I skipped one of the best uses for the infamous property of &#8216;this&#8217;.  Enough talk, more actionscript (sorry terrible pun).
So imagine this.  Lets say that we have class A which creates an instance of class B.  [...]]]></description>
			<content:encoded><![CDATA[<p>So just as I was looking over the lase post about &#8216;this&#8217;.  I realized that I skipped one of the best uses for the infamous property of &#8216;this&#8217;.  Enough talk, more actionscript (sorry terrible pun).</p>
<p>So imagine this.  Lets say that we have class A which creates an instance of class B.  Now lets say when want to store an instance of class A in class B so that you can call class A methods.  For smaller apps this is can be an acceptable code structure. So how do you pass an instance of a class in that same class?  You guessed it. this!</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('p393code2'); return false;">View Code</a> ACTIONSCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p3932"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code" id="p393code2"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> A 
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> b:B;
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> A<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		b = <span style="color: #000000; font-weight: bold;">new</span> B<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//Creates instance of B class</span>
		b.<span style="color: #006600;">a</span> = <span style="color: #0066CC;">this</span>; <span style="color: #808080; font-style: italic;">//this passes a reference of class A</span>
		<span style="color: #808080; font-style: italic;">//to class B.  Now class B can call class A's</span>
		<span style="color: #808080; font-style: italic;">//myCoolFunction.</span>
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
	<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> myCoolFunction<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: #808080; font-style: italic;">//Magic happens here. :)</span>
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></td></tr></table></div>

<p>If you have any other handy uses for this (I&#8217;m sure there are), please let me know in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/03/another-use-for-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>This is a good time to use &#8216;this&#8217;</title>
		<link>http://craigsimpson.net/2009/03/this-is-a-good-time-to-use-this/</link>
		<comments>http://craigsimpson.net/2009/03/this-is-a-good-time-to-use-this/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 19:19:27 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[AS2]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=172</guid>
		<description><![CDATA[I know for a lot of actionscript coders out there, especially beginners, &#8216;this&#8217; in can be rather confusing.  This issue can spark some pretty heated debates about this proper use.  So before diving in here is a short explanation of &#8216;this&#8217;.  In actionscript the object the code is currently running in is [...]]]></description>
			<content:encoded><![CDATA[<p>I know for a lot of actionscript coders out there, especially beginners, <em>&#8216;this&#8217;</em> in can be rather confusing.  This issue can spark some pretty heated debates about this proper use.  So before diving in here is a short explanation of <em>&#8216;this&#8217;</em>.  In actionscript the object the code is currently running in is referred to as <em>&#8216;this&#8217;</em>.  So lets say a class has a property myVar, putting this.myVar tells actionscript to look in the current object for the property myVar.  Why do we need this?  This doesn&#8217;t make any sense! Well look at the code below:</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('p172code4'); return false;">View Code</a> ACTIONSCRIPT3</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1724"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p172code4"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #6699cc; font-weight: bold;">var</span> age<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span>;
&nbsp;
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> myClass<span style="color: #000000;">&#40;</span>age<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
   <span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>age <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span>
      <span style="color: #0033ff; font-weight: bold;">this</span>.age = age;
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>So lets say this is a class (myClass) with a public variable age. In actionscript you can declare local variables and parameters that only exist for the duration of the function.  These local variables have the smallest scope, but have the highest preference, meaning if another variable is named the same the local variable, the local variable will be used instead of the class variable.  In the above example we have a constructor the class myClass.  Can you see were I am going with this?  In the above constructor we have two age variables! The parameter is defined in the function.  So to set the class variable we need to use &#8216;this&#8217; to specify between the local variable and the class variable.</p>
<p>This example is the only the real time that you need to use <em>&#8216;this&#8217;</em>, of course this is only my opinion. What do you think?  Coding vets how do you feel about <em>&#8216;this&#8217;</em>?</p>
]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/03/this-is-a-good-time-to-use-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interactive Forest</title>
		<link>http://craigsimpson.net/2009/01/interactive-forest/</link>
		<comments>http://craigsimpson.net/2009/01/interactive-forest/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 17:52:54 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Interactivity]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[Buidling classes]]></category>
		<category><![CDATA[flash development]]></category>
		<category><![CDATA[interactive images]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=183</guid>
		<description><![CDATA[From my previous post, animation.Float, I had the basic example of the animation class that I wrote to simulate dandelion seeds floating in the wind.  Well I had some free time this weekend and decided to keep my AS3 skills sharped and went on to add interactivity!    Depending on the location of your mouse will [...]]]></description>
			<content:encoded><![CDATA[<p>From my previous post, <a title="animation.Float" href="http://craigsimpson.net/2009/01/animationfloat/" onclick="">animation.Float</a>, I had the basic example of the animation class that I wrote to simulate dandelion seeds floating in the wind.  Well I had some free time this weekend and decided to keep my AS3 skills sharped and went on to add interactivity!    Depending on the location of your mouse will vary on the speed of the wind blowing the seeds around.  Farther away you go from the middle the faster the wind gets.  The interactivity is also directional and when you click on one of the seeds they disappear.</p>
<div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Dandelions_747541902"
			class="flashmovie"
			width="300"
			height="300">
	<param name="movie" value="/assets/swfs/Dandelions.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/assets/swfs/Dandelions.swf"
			name="fm_Dandelions_747541902"
			width="300"
			height="300">
	<!--<![endif]-->
		<br />

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></div>
<p>The Float class was one of the very first classes that I wrote on my own. Pretty much after I got done reading a book about OOP in AS2, I started this class.  Looking back now, it was pretty rough.  To add in the interactivity and to port the class over to AS3, I pretty much gutted the whole thing and started new, but it is neat to see that I have come a long way in such a short time.</p>
<p>Now the seeds are in a new Dandelion class that extends Float. Float contains a wind object which is shared among the other instances of dandelion seeds (kind of like a singleton, not really fond of them personally, but that is a different post).  After that is was simple to add in the required mouse detection class and update the wind velocity based on the mouse position.</p>
<h3>Future:</h3>
<p>There are still a few bugs left, if you are in FireFox switch to another tab and then come back.  Also I want to enforce the wind velocities a little better in case the mouse position is too extreme.  To enhance it I want to make it 3D by splitting the picture into layers and having the seeds go between the tree.  The 3d would also have the smaller seeds be removed from the stage earlier to make it look like it landed in the background of the image.</p>
<p><a title="Source files for Interactive Forest" href="http://craigsimpson.net/download/#Float" onclick="">Download Source [300K]</a></p>
<p><a title="AS3 Classes" href="http://craigsimpson.net/classes/AS3/net/craigsimpson" onclick="">Browse my Classes</a></p>
<p><em>Licensed under Creative Commons, so feel free to use them in your project and if you do please let me know.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/01/interactive-forest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cartoons made in Flash</title>
		<link>http://craigsimpson.net/2009/01/cartoons-made-in-flash/</link>
		<comments>http://craigsimpson.net/2009/01/cartoons-made-in-flash/#comments</comments>
		<pubDate>Sat, 24 Jan 2009 16:15:41 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[cartoons]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=119</guid>
		<description><![CDATA[My first job in Flash was animating a children cartoon series.  I had always drawn pictures and such as a child but freshly graduated I had no experience in animation.  At first it was very frustrating to get any cartoons done, but I finally had a break through and this job became such [...]]]></description>
			<content:encoded><![CDATA[<p>My first job in Flash was animating a children cartoon series.  I had always drawn pictures and such as a child but freshly graduated I had no experience in animation.  At first it was very frustrating to get any cartoons done, but I finally had a break through and this job became such a wonderful experience for me.  I started with nothing and at the end of my two years with Kid Chess I had made 75 cartoon episodes of edutainment to teach kids (K-5th) how to play chess.</p>
<p>I would have never guessed the popularity of theses cartoons in the schools.  To me I was just messing around try to make the knight&#8217;s lips sync with the audio.  Despite my novice everyone wanted more, and so a got some great help from <a title="LattaLand.com" href="http://lattaland.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://lattaland.com');" target="_blank">Josh Latta </a>a great cartoonist to help me out on the videos.</p>
<p>And the weapon of choice for animating the cartoons&#8230;.none other than Flash.  At the time I didn&#8217;t know better but there is better animation software out there.  I finally wised up and bought Preimer Pro and After Effects about a year into the job, but none the less it was and still is a great tool to create simple animations.</p>
<p>Below are some samples of my work.  Head on over to <a title="Kid Chess Atlanta" href="http://kidchess.com" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://kidchess.com');" target="_blank">KidChess.com</a> to see more.<br/><br/></p>
<p><center><br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_player_1192510409"
			class="flashmovie"
			width="450"
			height="550">
	<param name="movie" value="http://www.craigsimpson.net/assets/mediaplayer/player.swf" />
	<param name="flashvars" value="file=http://www.craigsimpson.net/assets/playlists/cartoon_examples.xml&skin=http://www.craigsimpson.net/assets/mediaplayer/skins/modieus.swf&playlist=bottom" />
	<param name="allowscriptaccess" value="always" />
	<param name="allowfullscreen" value="true" />
	<param name="allownetworking" value="all" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://www.craigsimpson.net/assets/mediaplayer/player.swf"
			name="fm_player_1192510409"
			width="450"
			height="550">
		<param name="flashvars" value="file=http://www.craigsimpson.net/assets/playlists/cartoon_examples.xml&skin=http://www.craigsimpson.net/assets/mediaplayer/skins/modieus.swf&playlist=bottom" />
		<param name="allowscriptaccess" value="always" />
		<param name="allowfullscreen" value="true" />
		<param name="allownetworking" value="all" />
	<!--<![endif]-->
		<br />

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object><br />
</center></p>
]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/01/cartoons-made-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>animation.Float</title>
		<link>http://craigsimpson.net/2009/01/animationfloat/</link>
		<comments>http://craigsimpson.net/2009/01/animationfloat/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 06:52:31 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Animation]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[animation actionscript]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=20</guid>
		<description><![CDATA[Part of my slowly growing animation package for AS2 and AS3.  To browse my different classes and packages in Flash actionscript visit my classes download page or go to my downloads page to directly download the AS code.

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_dandelions_204979913"
			class="flashmovie"
			width="320"
			height="240">
	<param name="movie" value="/assets/swfs/dandelions.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/assets/swfs/dandelions.swf"
			name="fm_dandelions_204979913"
			width="320"
			height="240">
	<!--<![endif]-->
		

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>

]]></description>
			<content:encoded><![CDATA[<p>Part of my slowly growing animation package for AS2 and AS3.  To browse my different classes and packages in Flash actionscript visit my <a title="Classes Page" href="http://craigsimpson.net/classes" onclick="" target="_blank">classes download page</a> or go to my <a title="animation.Float download page" href="http://craigsimpson.net/downloads/#Float" onclick="" target="_self">downloads page</a> to directly download the AS code.<br />

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_dandelions_249090336"
			class="flashmovie"
			width="320"
			height="240">
	<param name="movie" value="/assets/swfs/dandelions.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="/assets/swfs/dandelions.swf"
			name="fm_dandelions_249090336"
			width="320"
			height="240">
	<!--<![endif]-->
		<br />

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p><!--[codesyntax lang="actionscript3" container="div" lines="normal"][/codesyntax]--></p>
]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/01/animationfloat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
