<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Craig Simpson - Flash Developer</title>
	
	<link>http://craigsimpson.net</link>
	<description>Flash and Flex development blog. Pooling of resources, tutorials and discussion of everything Actionscript.</description>
	<lastBuildDate>Sun, 20 Dec 2009 00:00:00 PST</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Craigsimpsonnet" /><feedburner:info uri="craigsimpsonnet" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><geo:lat>33.86427</geo:lat><geo:long>-84.419728</geo:long><image><link>http://www.craigsimpson.net</link><url>http://www.craigsimpson.net/assets/images/fox.jpg</url><title>Craig Simpson</title></image><item><title>Links for 2009-12-19 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/s83FQoh6IlI/gtg236s</link><pubDate>Sun, 20 Dec 2009 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/gtg236s#2009-12-19</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://seantheflexguy.com/blog/2009/12/19/list-of-34-more-actionscript-30-apis/"&gt;List of 34 More ActionScript 3.0 APIs&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/gtg236s#2009-12-19</feedburner:origLink></item><item><title>Links for 2009-06-07 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/zjJrUQk7IT4/gtg236s</link><pubDate>Mon, 08 Jun 2009 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/gtg236s#2009-06-07</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://feed43.com/"&gt;Feed43 : Convert any web page to news feed on the fly&lt;/a&gt;&lt;br/&gt;
Turn any website into a RSS feed. Pretty cool!&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/gtg236s#2009-06-07</feedburner:origLink></item><item><title>Links for 2009-05-28 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/08bDijN_wC4/gtg236s</link><pubDate>Fri, 29 May 2009 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/gtg236s#2009-05-28</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.fmsguru.com/index.cfm"&gt;FMSGuru.com : Flash Media Server Video Tutorials, Forum and Articles for the FMS Community&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/gtg236s#2009-05-28</feedburner:origLink></item><item><title>Links for 2009-05-22 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/phuxA4eUvqY/gtg236s</link><pubDate>Sat, 23 May 2009 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/gtg236s#2009-05-22</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.stevensacks.net/2008/03/05/jsfl-documentation/"&gt;JSFL Documentation | flex and flash developer | steven sacks&lt;/a&gt;&lt;br/&gt;
Behold someone has discovered the long lost JSFL documentation!&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/gtg236s#2009-05-22</feedburner:origLink></item><item><title>Links for 2009-05-07 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/OdkYBR9_-cU/gtg236s</link><pubDate>Fri, 08 May 2009 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/gtg236s#2009-05-07</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.warmforestflash.com/blog/2009/04/free-as3-scrollbar-fullscreen-and-resizable/"&gt;Free AS3 Scrollbar: Fullscreen and Resizable | Warm Forest | Flash &amp;amp; ActionScript Blog&lt;/a&gt;&lt;br/&gt;
Very useful scrollbar in AS3&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/gtg236s#2009-05-07</feedburner:origLink></item><item>
		<title>WTF? Firefox!</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/T6NrTHlfwRQ/</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>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=T6NrTHlfwRQ:z3PaZr5tDIk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=T6NrTHlfwRQ:z3PaZr5tDIk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=T6NrTHlfwRQ:z3PaZr5tDIk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=T6NrTHlfwRQ:z3PaZr5tDIk:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=T6NrTHlfwRQ:z3PaZr5tDIk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=T6NrTHlfwRQ:z3PaZr5tDIk:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/04/wtf-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/04/wtf-firefox/</feedburner:origLink></item>
		<item><title>Links for 2009-04-21 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/9EI9oz2o84g/gtg236s</link><pubDate>Wed, 22 Apr 2009 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/gtg236s#2009-04-21</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.madvertices.com/2008/01/papervision-3d-training-videos.html"&gt;MAD VERTICES: Papervision 3D Tutorials (with Videos)&lt;/a&gt;&lt;br/&gt;
Get video tutorials on papervision3d, and they are free!&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/gtg236s#2009-04-21</feedburner:origLink></item><item><title>Links for 2009-04-20 [del.icio.us]</title><link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/G-zzYhtu9ro/gtg236s</link><pubDate>Tue, 21 Apr 2009 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/gtg236s#2009-04-20</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://jessewarden.com/2008/11/agile-chronicles-1-stressful.html"&gt;Flex and Flash Developer - Jesse Warden dot Kizz-ohm &amp;raquo; Blog Archive &amp;raquo; Agile Chronicles #1: Stressful&lt;/a&gt;&lt;br/&gt;
I work in a small group but we still use some of these Agile principles.&lt;/li&gt;
&lt;/ul&gt;</description><feedburner:origLink>http://del.icio.us/gtg236s#2009-04-20</feedburner:origLink></item><item>
		<title>Another use for ‘this’</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/u6j1IT4YK3k/</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>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=u6j1IT4YK3k:8STYSA20mLg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=u6j1IT4YK3k:8STYSA20mLg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=u6j1IT4YK3k:8STYSA20mLg:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=u6j1IT4YK3k:8STYSA20mLg:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=u6j1IT4YK3k:8STYSA20mLg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=u6j1IT4YK3k:8STYSA20mLg:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/03/another-use-for-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/03/another-use-for-this/</feedburner:origLink></item>
		<item>
		<title>This is a good time to use ‘this’</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/W6RZijh3GTQ/</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>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=W6RZijh3GTQ:cc8WasVNKyE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=W6RZijh3GTQ:cc8WasVNKyE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=W6RZijh3GTQ:cc8WasVNKyE:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=W6RZijh3GTQ:cc8WasVNKyE:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=W6RZijh3GTQ:cc8WasVNKyE:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=W6RZijh3GTQ:cc8WasVNKyE:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></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>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/03/this-is-a-good-time-to-use-this/</feedburner:origLink></item>
		<item>
		<title>What makes you a good Developer? Part 1.</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/hZb1Z0ZjdGk/</link>
		<comments>http://craigsimpson.net/2009/03/what-makes-you-a-good-developer-part-1/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 06:17:40 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[code conventions]]></category>
		<category><![CDATA[news]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=359</guid>
		<description><![CDATA[Ya, coding conventions!
(for the OCD developer)

 Follow coding conventions in your projects. That way you write clear and concise code.  The problem is there are many conventions. In reality &#8220;conventions&#8221; is really a code word for someones arbitrary opinion on how to write neat code. So&#8230;which one do you follow? It doesn&#8217;t really matter; [...]]]></description>
			<content:encoded><![CDATA[<h2>Ya, coding conventions!</h2>
<p><em>(for the OCD developer)</em></p>
<ol>
<li> Follow coding conventions in your projects. That way you write clear and concise code.  The problem is there are many conventions. In reality &#8220;conventions&#8221; is really a code word for someones arbitrary opinion on how to write neat code. So&#8230;which one do you follow? It doesn&#8217;t really matter; just follow one. <a title="Adobe AS3 Standards" href="http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions');" target="_blank">Adobe recently lays one out</a> and I can agree with most of it.  It is not complete and just because it is by Adobe does not mean it is the end all be all.<br/><br />
While reading the document, I couldn&#8217;t help but feel like I was being scolded by my parents. Take a look:</p>
<blockquote><p><em>Do this:</em></p>
<div class="preformatted panel" style="border-width: 1px;">
<div class="preformattedContent panelContent">
<pre>public function set label(value:String):void</pre>
</div>
</div>
<p><em>Not this:</em></p>
<pre>public function set label(lab:String):void</pre>
</blockquote>
</li>
<li>Stick to those conventions!  I have to admit it is hard but practice it all the time.  Remember this is not the fun part of Flash &amp; Flex development and it never will be but make it a habit.</li>
<li>Lastly, you will eventually run into someone who doesn&#8217;t agree with your conventions.  In that situation just think about my first point.</li>
</ol>
<p>Now time for me to go back to my old code and see what mistakes I&#8217;ve made.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=hZb1Z0ZjdGk:n4_NrbGg9O4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=hZb1Z0ZjdGk:n4_NrbGg9O4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=hZb1Z0ZjdGk:n4_NrbGg9O4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=hZb1Z0ZjdGk:n4_NrbGg9O4:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=hZb1Z0ZjdGk:n4_NrbGg9O4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=hZb1Z0ZjdGk:n4_NrbGg9O4:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/03/what-makes-you-a-good-developer-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/03/what-makes-you-a-good-developer-part-1/</feedburner:origLink></item>
		<item>
		<title>Listening to Music during Development?</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/fks3sZzK72g/</link>
		<comments>http://craigsimpson.net/2009/03/listening-to-music-during-development/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 15:14:42 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[lisening to music]]></category>
		<category><![CDATA[lounge music]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=171</guid>
		<description><![CDATA[What do you listen to when you doing work or more importantly developing? For me it would be lounge music, great stuff!
]]></description>
			<content:encoded><![CDATA[<p>What do you listen to when you doing work or more importantly developing? For me it would be <a title="Lounge Radio" href="http://www.pandora.com/?sc=sh184523949818102675" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://www.pandora.com/?sc=sh184523949818102675');" target="_blank">lounge music</a>, great stuff!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=fks3sZzK72g:NSVZv9TbV6Y:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=fks3sZzK72g:NSVZv9TbV6Y:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=fks3sZzK72g:NSVZv9TbV6Y:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=fks3sZzK72g:NSVZv9TbV6Y:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=fks3sZzK72g:NSVZv9TbV6Y:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=fks3sZzK72g:NSVZv9TbV6Y:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/03/listening-to-music-during-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/03/listening-to-music-during-development/</feedburner:origLink></item>
		<item>
		<title>Interactive Forest</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/LJ0Le5f33WQ/</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_4329362"
			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_4329362"
			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>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=LJ0Le5f33WQ:X2Uxv2ITdNo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=LJ0Le5f33WQ:X2Uxv2ITdNo:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=LJ0Le5f33WQ:X2Uxv2ITdNo:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=LJ0Le5f33WQ:X2Uxv2ITdNo:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=LJ0Le5f33WQ:X2Uxv2ITdNo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=LJ0Le5f33WQ:X2Uxv2ITdNo:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/01/interactive-forest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/01/interactive-forest/</feedburner:origLink></item>
		<item>
		<title>Cartoons made in Flash</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/F8EH8hMh9uw/</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_1164138671"
			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_1164138671"
			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>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=F8EH8hMh9uw:REu1ATBZ-SQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=F8EH8hMh9uw:REu1ATBZ-SQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=F8EH8hMh9uw:REu1ATBZ-SQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=F8EH8hMh9uw:REu1ATBZ-SQ:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=F8EH8hMh9uw:REu1ATBZ-SQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=F8EH8hMh9uw:REu1ATBZ-SQ:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/01/cartoons-made-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/01/cartoons-made-in-flash/</feedburner:origLink></item>
		<item>
		<title>utility.Debugger</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/19iNKMNbh7E/</link>
		<comments>http://craigsimpson.net/2009/01/utilitydebugger/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 14:00:24 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[My Work]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=85</guid>
		<description><![CDATA[
Description:
A Flex application that I developed to print trace messages to a custom debugger panel.  I use it in all my projects since trace does not work on applications running out side the Flash&#8217;s IDE.  Some of the features include 3 message levels so that you can choose not to get flooded with debugging messages. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.craigsimpson.net/debugger.html" onclick=""><img class="size-medium wp-image-217" title="Debugger v1" src="http://craigsimpson.net/wp-content/uploads/2009/01/debugger_preview-300x247.jpg" alt="Screen Shot of Debugger" width="300" height="247" align="left" padding="10" /></a></p>
<h3>Description:</h3>
<p>A Flex application that I developed to print trace messages to a custom debugger panel.  I use it in all my projects since trace does not work on applications running out side the Flash&#8217;s IDE.  Some of the features include 3 message levels so that you can choose not to get flooded with debugging messages.  Secondly you can also highlight messages. This works great for error messages and looking for those hard to find variables.    Even if your compiling in Flash&#8217;s IDE, Debugger still sends out your message as trace. This is a life saver in time and debugging when your clients call say the live app is not working. This app is a must for any Flex or Flash project.</p>
<p><a title="Debugger Panel" href="http://craigsimpson.net/debugger.html" onclick="" target="_blank">[ View  debugger panel ]</a><br />
<br/></p>
<h3>Download:</h3>
<p><a title="Debugger.zip" href="http://craigsimpson.net/download/Debugger.zip" onclick="javascript:pageTracker._trackPageview('/downloads/download/Debugger.zip');">[ Debugger.zip 281 K ]</a> The source files for both the output panel and the static class that you place into your project to send messages to the panel. Instructions on using debugger panel is in the class file.<br />
<br/></p>

<div class="wp_codebox_msgheader wp_codebox_hide"><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="left2">Download <a href="http://craigsimpson.net/wp-content/plugins/wp-codebox/wp-codebox.php?p=85&amp;download=Debugger.as">Debugger.as</a></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p856"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
</pre></td><td class="code" id="p85code6"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #3f5fbf;">/*
 Copyright(c) 2008-09 Craig Simpson, Some rights reserved.
 Your reuse is governed by the Creative Commons Attribution 3.0 United States License
*/</span>
 <span style="color: #9900cc; font-weight: bold;">package</span> net.craigsimpson.utility<span style="color: #000000;">&#123;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.net</span>.<span style="color: #004993;">LocalConnection</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">SecurityErrorEvent</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span>.<span style="color: #004993;">StatusEvent</span>;
&nbsp;
	<span style="color: #3f5fbf;">/*
	 	Debugger Singleton Class:
&nbsp;
		Developed to be used in AS3 Flash &amp; Flex applications. The class sends debug meessages 
		to the custom built debugger panel. Kind of like looking trace commands in a browser. 
		Great for both development and when application is live on the web.
&nbsp;
			//Example actionscript to send messages to plane;
			var debugger:Debugger = Debugger.instance;
			debugger.connect(&quot;MyCoolApp&quot;);
			debugger.send(&quot;Test 1...2....3&quot;);
&nbsp;
		Debugger Panel Application:
&nbsp;
		The custom debugging panel source can be downloaded at www.craigsimpson.net/download/Debugger.zip
		Also a live version is hosted on my site at www.craigsimpson.net/debugger.html
&nbsp;
		Contact:
&nbsp;
		Report any bugs, comments, or suggestions at www.craigsimpson.net/contact
	 */</span>
&nbsp;
	dynamic <span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Debugger
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> const CONNECTION_NAME<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #990000;">&quot;_debugger&quot;</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> debuggerLC<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">LocalConnection</span>;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _appName<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span>;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #6699cc; font-weight: bold;">var</span> _domain<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span>;
&nbsp;
        <span style="color: #0033ff; font-weight: bold;">private</span> static <span style="color: #6699cc; font-weight: bold;">var</span> __instance<span style="color: #000000; font-weight: bold;">:</span>Debugger;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Debugger<span style="color: #000000;">&#40;</span>enforcer<span style="color: #000000; font-weight: bold;">:</span>SingletonEnforcer<span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #009900;">//Constructor</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> static <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #0033ff; font-weight: bold;">get</span> instance <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span>Debugger
		<span style="color: #000000;">&#123;</span>
			<span style="color: #0033ff; font-weight: bold;">if</span><span style="color: #000000;">&#40;</span>Debugger.__instance == <span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
				Debugger.__instance = <span style="color: #0033ff; font-weight: bold;">new</span> Debugger<span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">new</span> SingletonEnforcer<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #000000;">&#125;</span>
			<span style="color: #0033ff; font-weight: bold;">return</span> Debugger.__instance;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #3f5fbf;">/*
			Send messages to output in the debugger window
		*/</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">send</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">message</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Object</span>, <span style="color: #004993;">level</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Number</span> = <span style="color: #000000; font-weight:bold;">0</span>, hightlight<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> = <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			debuggerLC.<span style="color: #004993;">send</span><span style="color: #000000;">&#40;</span> CONNECTION_NAME, <span style="color: #990000;">&quot;outputText&quot;</span>, <span style="color: #004993;">message</span>, <span style="color: #004993;">level</span>, hightlight <span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">message</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #3f5fbf;">/*
			Connects application to debugger panel, must be called once in your application.  Since multiple apps are allowed to connected to the debugger
			panel applicationName helps indenifty which apps are currently connected.
		*/</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> <span style="color: #004993;">connect</span><span style="color: #000000;">&#40;</span>applicationName<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #0033ff; font-weight: bold;">null</span>, <span style="color: #004993;">domain</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">String</span> = <span style="color: #0033ff; font-weight: bold;">null</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			_appName = applicationName <span style="color: #000000; font-weight: bold;">?</span> applicationName <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #990000;">&quot;Unknown Application&quot;</span>;
			_domain = <span style="color: #004993;">domain</span> <span style="color: #000000; font-weight: bold;">?</span> <span style="color: #004993;">domain</span> <span style="color: #000000; font-weight: bold;">:</span> <span style="color: #990000;">&quot;*&quot;</span>;
&nbsp;
			debuggerLC = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">LocalConnection</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			debuggerLC.<span style="color: #004993;">allowDomain</span><span style="color: #000000;">&#40;</span>_domain<span style="color: #000000;">&#41;</span>;
			debuggerLC.<span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">SecurityErrorEvent</span>.<span style="color: #004993;">SECURITY_ERROR</span>, onConnectionError<span style="color: #000000;">&#41;</span>;
&nbsp;
			<span style="color: #004993;">send</span><span style="color: #000000;">&#40;</span> _appName <span style="color: #000000; font-weight: bold;">+</span> <span style="color: #990000;">&quot; Connected &quot;</span>, <span style="color: #000000; font-weight:bold;">1</span>, <span style="color: #0033ff; font-weight: bold;">false</span> <span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #3f5fbf;">/*
			Sends a message that is highlighted in red, for sending error messages that need to catch the endusers atttention.
		*/</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> sendError<span style="color: #000000;">&#40;</span>errorMessage<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Object</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">send</span><span style="color: #000000;">&#40;</span> errorMessage, <span style="color: #000000; font-weight:bold;">2</span>, <span style="color: #0033ff; font-weight: bold;">true</span> <span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #3f5fbf;">/*
			Sends highlighted message to panel.
		*/</span>
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> sendHighlighted<span style="color: #000000;">&#40;</span><span style="color: #004993;">message</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Object</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #004993;">send</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">message</span>, <span style="color: #000000; font-weight:bold;">2</span>, <span style="color: #0033ff; font-weight: bold;">true</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #3f5fbf;">/*
		 *  Event Listeners
		 */</span>
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> onConnectionError<span style="color: #000000;">&#40;</span>event<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">SecurityErrorEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span> 
		<span style="color: #000000;">&#123;</span>
			debuggerLC.<span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">SecurityErrorEvent</span>.<span style="color: #004993;">SECURITY_ERROR</span>, onConnectionError<span style="color: #000000;">&#41;</span>;
			debuggerLC = <span style="color: #0033ff; font-weight: bold;">null</span>;
&nbsp;
			<span style="color: #004993;">trace</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;LOCAL CONNECTION SECURITY ERROR!&quot;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #0033ff; font-weight: bold;">throw</span> <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Error</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;onConnectionError: &quot;</span><span style="color: #000000; font-weight: bold;">+</span>event.<span style="color: #004993;">toString</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">internal</span> <span style="color: #9900cc; font-weight: bold;">class</span> SingletonEnforcer <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><br/></p>
<h2>Future:</h2>
<p>Documentation write up for implementation of Debugger class and using the panel. Any suggestions for future releases are greatly appreciated.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=19iNKMNbh7E:CCFjrAtYIPI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=19iNKMNbh7E:CCFjrAtYIPI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=19iNKMNbh7E:CCFjrAtYIPI:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=19iNKMNbh7E:CCFjrAtYIPI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=19iNKMNbh7E:CCFjrAtYIPI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=19iNKMNbh7E:CCFjrAtYIPI:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/01/utilitydebugger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/01/utilitydebugger/</feedburner:origLink></item>
		<item>
		<title>animation.Float</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/rIQxZ2feFZM/</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_297662451"
			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_297662451"
			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_317829398"
			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_317829398"
			width="320"
			height="240">
	<!--<![endif]-->
		<br />

	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p><!--[codesyntax lang="actionscript3" container="div" lines="normal"][/codesyntax]--></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=rIQxZ2feFZM:hY7Gdpjkg78:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=rIQxZ2feFZM:hY7Gdpjkg78:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=rIQxZ2feFZM:hY7Gdpjkg78:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=rIQxZ2feFZM:hY7Gdpjkg78:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=rIQxZ2feFZM:hY7Gdpjkg78:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=rIQxZ2feFZM:hY7Gdpjkg78:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/01/animationfloat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/01/animationfloat/</feedburner:origLink></item>
		<item>
		<title>New Site 3.0.0!</title>
		<link>http://feedproxy.google.com/~r/Craigsimpsonnet/~3/3Y6Xkar5K6w/</link>
		<comments>http://craigsimpson.net/2009/01/hello-world/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 06:18:33 +0000</pubDate>
		<dc:creator>Craig</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://craigsimpson.net/?p=1</guid>
		<description><![CDATA[For the longest time I have been running a cooking blog and my professional portfolio on two diiferent websites [ www.vestedfox.com &#38; resume.craigsimpson.net ].  With my busy shecdule it was becoming harder to keeping up both.  So I&#8217;ve decided to combine the two.  I am currently developing a FLEX cook book application that will hold [...]]]></description>
			<content:encoded><![CDATA[<p>For the longest time I have been running a cooking blog and my professional portfolio on two diiferent websites [ www.vestedfox.com &amp; resume.craigsimpson.net ].  With my busy shecdule it was becoming harder to keeping up both.  So I&#8217;ve decided to combine the two.  I am currently developing a FLEX cook book application that will hold all of my recipes, so keep a look out in my recipe section for the app and new recipes.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=3Y6Xkar5K6w:Jm2K1iZBYGY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=3Y6Xkar5K6w:Jm2K1iZBYGY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=3Y6Xkar5K6w:Jm2K1iZBYGY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=3Y6Xkar5K6w:Jm2K1iZBYGY:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Craigsimpsonnet?a=3Y6Xkar5K6w:Jm2K1iZBYGY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Craigsimpsonnet?i=3Y6Xkar5K6w:Jm2K1iZBYGY:gIN9vFwOqvQ" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://craigsimpson.net/2009/01/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<creativeCommons:license>http://creativecommons.org/licenses/by/2.0/</creativeCommons:license><feedburner:origLink>http://craigsimpson.net/2009/01/hello-world/</feedburner:origLink></item>
	</channel>
</rss>
