<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/2.1.2" --><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/" version="2.0">

<channel>
	<title>the1stMovement: Our Playground</title>
	<link>http://playground.the1stmovement.com</link>
	<description>the1stMovement: Our Playground</description>
	<pubDate>Mon, 11 Feb 2008 01:13:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>
	<language>en</language>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/t1mPlayground" type="application/rss+xml" /><item>
		<title>Newsletter: Special Collector’s First Edition</title>
		<link>http://playground.the1stmovement.com/misc/newsletter-special-collectors-first-edition/</link>
		<comments>http://playground.the1stmovement.com/misc/newsletter-special-collectors-first-edition/#comments</comments>
		<pubDate>Mon, 11 Feb 2008 01:13:50 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/misc/newsletter-special-collectors-first-edition/</guid>
		<description><![CDATA[
Not everyone had a great 2007. Take the Writers Guild of America for instance. Not one of their best years. By a long shot. Or Don Imus, Britney Spears or the NBA referees. None of these people can be said to have had a great 2007. We at The1stMovement, however, did. Our 2007 was superb. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://photos-c.ak.facebook.com/photos-ak-sf2p/v199/160/39/8679061537/n8679061537_434866_8604.jpg" height="200" width="550" /></p>
<p>Not everyone had a great 2007. Take the Writers Guild of America for instance. Not one of their best years. By a long shot. Or Don Imus, Britney Spears or the NBA referees. None of these people can be said to have had a great 2007. We at The1stMovement, however, did. Our 2007 was superb. So what better occasion to debut our newsletter and to wish you an employed, racially tolerant, sane, non-mob tied and most of all, successful 2008?</p>
<p>Read more at <a href="http://www.the1stmovement.com/newsletter/feb2008.html" target="_blank" rel="nofollow"><span>http://www.the1stmovement.</span><wbr></wbr><span class="word_break"></span><span>com/newsletter/feb2008.htm</span><wbr></wbr><span class="word_break"></span>l</a></p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/misc/newsletter-special-collectors-first-edition/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Form Validation with RegExp in AS3</title>
		<link>http://playground.the1stmovement.com/flash/form-validation-with-regexp-in-as3/</link>
		<comments>http://playground.the1stmovement.com/flash/form-validation-with-regexp-in-as3/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 16:41:23 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/flash/form-validation-with-regexp-in-as3/</guid>
		<description><![CDATA[RegExp is a new native class for ActionScript 3 that lets you work with regular expressions, which are patterns that you can use       to perform searches in strings and to replace text in strings.  Natively supported by many programming languages, ActionScript 3.0 implements regular expressions as defined in [...]]]></description>
			<content:encoded><![CDATA[<p>RegExp is a new native class for ActionScript 3 that lets you work with <a href="http://en.wikipedia.org/wiki/Regular_expressions" target="_blank">regular expressions</a>, which are patterns that you can use       to perform searches in strings and to replace text in strings.  Natively supported by many programming languages, ActionScript 3.0 implements regular expressions as defined in the ECMAScript edition 3 language specification (ECMA-262).  Specifically for Flash or Flex development, RegExp will most likely be useful for any data validation or search and replace any string.</p>
<p>For example, you would like to verify a string contains the letters "AS", you would do</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="480" height="50" id="ftf_wp" align="middle">
		  <param name="movie" value="http://playground.the1stmovement.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="auto=true&h=50&file=/index.php&ftf=true&postID=54&no=0&def=http://playground.the1stmovement.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&" />
		  <embed src="http://playground.the1stmovement.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="480" height="50" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="auto=true&h=50&file=/index.php&ftf=true&postID=54&no=0&def=http://playground.the1stmovement.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&" />
		</object></p>
<p>The regular expression to see if a string contains the letter "AS" is /AS/ (<em>remember the '/' before and '/' after the expression</em>), and the above function defines a new RegExp Object and test it against a variable called sString.</p>
<p>There are a lot more complicated regular expression syntax,  you can start from the Adobe AS3 LiveDocs <a href="http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000112.html" target="_blank">here</a> to learn more.  Here's a class <a href="http://www.the1stmovement.com" target="_blank">we </a>made to do simple form validation for AS3:</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="480" height="300" id="ftf_wp" align="middle">
		  <param name="movie" value="http://playground.the1stmovement.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" />
		  <param name="quality" value="high" />
		  <param name="scale" value="noscale" />
		  <param name="bgcolor" value="#ffffff" />
		  <param name="flashvars" value="=&file=/index.php&ftf=true&postID=54&no=1&def=http://playground.the1stmovement.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		  <embed src="http://playground.the1stmovement.com/wp-content/plugins/FlashTextFormatter/ftf_wp.swf" quality="high" scale="noscale" bgcolor="#ffffff" width="480" height="300" name="ftf_wp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="=&file=/index.php&ftf=true&postID=54&no=1&def=http://playground.the1stmovement.com/wp-content/plugins/FlashTextFormatter/definitions/as2.xml&auto=true&" />
		</object></p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/flash/form-validation-with-regexp-in-as3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HD Video on Web In Action</title>
		<link>http://playground.the1stmovement.com/flash/hd-video-on-web-in-action/</link>
		<comments>http://playground.the1stmovement.com/flash/hd-video-on-web-in-action/#comments</comments>
		<pubDate>Fri, 12 Oct 2007 20:44:32 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/flash/hd-video-on-web-in-action/</guid>
		<description><![CDATA[Sometime in the next few months, Adobe is expected to incorporate the H.264 codec in all Flash players with the general release of Flash Player 9.  You can already download a beta version from Adobe Labs. The H.264 codec is part of MPEG-4 and is the codec that Apple uses to compress all of [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime in the next few months, Adobe is expected to incorporate the <a href="http://en.wikipedia.org/wiki/H.264" onclick="javascript:urchinTracker ('/outbound/en.wikipedia.org');">H.264 codec<img src="http://i.ixnp.com/images/v2.26.1/t.gif" id="snap_com_shot_link_icon" class="snap_preview_icon" style="border: 0pt none ; margin: 0pt ! important; padding: 1px 0pt 0pt; font-style: normal; font-weight: normal" /></a> in all Flash players with the general release of Flash Player 9.  You can already download a <a href="http://labs.adobe.com/technologies/flashplayer9/" onclick="javascript:urchinTracker ('/outbound/labs.adobe.com');">beta version<img src="http://i.ixnp.com/images/v2.26.1/t.gif" id="snap_com_shot_link_icon" class="snap_preview_icon" style="border: 0pt none ; margin: 0pt ! important; padding: 1px 0pt 0pt; font-style: normal; font-weight: normal" /></a> from Adobe Labs. The H.264 codec is part of MPEG-4 and is the codec that Apple uses to compress all of the video downloads on iTunes. Once H.264 is part of Flash, the quality of streaming video on the Web will roughly double at current bandwidth speeds.</p>
<p>Some video sharing sites already started implementing the player including Vimeo (<a href="http://vimeo.com/highdef" target="_blank">http://vimeo.com/highdef</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/flash/hd-video-on-web-in-action/feed/</wfw:commentRss>
		</item>
		<item>
		<title>FITC Hollywood 20% off</title>
		<link>http://playground.the1stmovement.com/flash/fitc-hollywood-20-off/</link>
		<comments>http://playground.the1stmovement.com/flash/fitc-hollywood-20-off/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 16:49:59 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/flash/fitc-hollywood-20-off/</guid>
		<description><![CDATA[Event highlights include:

50 + presentations and panels
Presentations  from Adobe, bigspaceship.com (Joshua Hirsch), Blitz (Ivan Todorov), Hello Design  (David Lai) Trailer Park (Marcelo Guerra and Jason Seigler) and others
Pre-festival workshops
Free ‘Get A Job’ evening event
Parties and  other networking opportunities

For event details, go to http://www.fitc.ca/hollywood, and enter "hotshop20" to get 20% off
]]></description>
			<content:encoded><![CDATA[<p>Event highlights include:</p>
<ul>
<li>50 + presentations and panels</li>
<li>Presentations  from Adobe, bigspaceship.com (Joshua Hirsch), Blitz (Ivan Todorov), Hello Design  (David Lai) Trailer Park (Marcelo Guerra and Jason Seigler) and others</li>
<li>Pre-festival workshops</li>
<li>Free ‘Get A Job’ evening event</li>
<li>Parties and  other networking opportunities</li>
</ul>
<p>For event details, go to <a href="http://www.fitc.ca/hollywood" class="moz-txt-link-freetext" title="http://www.fitc.ca/hollywood">http://www.fitc.ca/hollywood</a>, and enter "hotshop20" to get 20% off</p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/flash/fitc-hollywood-20-off/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AIR Apps</title>
		<link>http://playground.the1stmovement.com/air/air-apps/</link>
		<comments>http://playground.the1stmovement.com/air/air-apps/#comments</comments>
		<pubDate>Mon, 01 Oct 2007 16:53:10 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[AIR]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/air/air-apps/</guid>
		<description><![CDATA[As expected, at the Adobe Max Event in Chicago, Adobe launched a Beta 2 release of their AIR application, along  with many good looking AIR apps including:

Adobe Media Player - a slick online/offline Flash video player
eBay Destkop - the long awaited "San Dimas" eBay Desktop app

and more here
]]></description>
			<content:encoded><![CDATA[<p>As expected, at the Adobe Max Event in Chicago, Adobe launched a <a href="http://labs.adobe.com/technologies/air/" target="_blank">Beta 2 release</a> of their AIR application, along  with many good looking AIR apps including:</p>
<ul>
<li><a href="http://labs.adobe.com/downloads/mediaplayer.html" target="_blank">Adobe Media Player</a> - a slick online/offline Flash video player</li>
<li><a href="http://labs.adobe.com/showcase/air/ebay.html" target="_blank">eBay Destkop</a> - the long awaited "San Dimas" eBay Desktop app</li>
</ul>
<p><a href="http://labs.adobe.com/showcase/air/ebay.html" target="_blank">and more here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/air/air-apps/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Free As3 Training Class in 10 cities</title>
		<link>http://playground.the1stmovement.com/misc/free-as3-training-class-in-10-cities/</link>
		<comments>http://playground.the1stmovement.com/misc/free-as3-training-class-in-10-cities/#comments</comments>
		<pubDate>Thu, 20 Sep 2007 07:23:30 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/misc/free-as3-training-class-in-10-cities/</guid>
		<description><![CDATA[Renowned Flash Instructor and author of the "Essential Actionscript 3.0" Colin Moock is doing an intensive full day of AS3 Training in 10 cities including San Francisco, Los Angeles, New York, Tokyo, London, and more..
Don't miss it and go sign up now!  http://www.adobeas3tour.com/
]]></description>
			<content:encoded><![CDATA[<p>Renowned Flash Instructor and author of the "Essential Actionscript 3.0" Colin Moock is doing an intensive full day of AS3 Training in 10 cities including San Francisco, Los Angeles, New York, Tokyo, London, and more..</p>
<p>Don't miss it and go sign up now!  <a href="http://www.adobeas3tour.com/" target="_blank">http://www.adobeas3tour.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/misc/free-as3-training-class-in-10-cities/feed/</wfw:commentRss>
		</item>
		<item>
		<title>“The Interior” - New Internet Drama-Series</title>
		<link>http://playground.the1stmovement.com/viralmarketing/the-interior-new-internet-drama-series-in-private-beta/</link>
		<comments>http://playground.the1stmovement.com/viralmarketing/the-interior-new-internet-drama-series-in-private-beta/#comments</comments>
		<pubDate>Tue, 17 Jul 2007 16:46:42 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[Viral Marketing]]></category>

		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/viralmarketing/the-interior-new-internet-drama-series-in-private-beta/</guid>
		<description><![CDATA[Back in the summer of 2006, Dreamscape Films approached us (the1stMovement) with a very unique idea:  A drama-series broadcast exclusively online and furthermore, let the Internet users choose the casts.  As Geert Heetebrij and Helmut Schleppi, founders of DreamScape Films, put it:
 "Don't scale the gates of Hollywood.  Walk around them"
We were [...]]]></description>
			<content:encoded><![CDATA[<p>Back in the summer of 2006, Dreamscape Films approached us (<a href="http://www.the1stmovement.com" target="_blank">the1stMovement</a>) with a very unique idea:  A drama-series broadcast exclusively online and furthermore, let the Internet users choose the casts.  As <a href="http://www.imdb.com/name/nm1149083/" target="_blank">Geert Heetebrij</a> and <a href="http://www.imdb.com/name/nm1110794/" target="_blank">Helmut Schleppi</a>, founders of DreamScape Films, put it:</p>
<blockquote><p><em> "Don't scale the gates of Hollywood.  Walk around them"</em></p></blockquote>
<p>We were immediately hooked with the idea and after about a month of consultations, design and development, we launched <a href="http://www.theinterior.tv/phaseI.html" target="_blank">the Interior Phase I</a> in October 2006.</p>
<p><a href="http://www.theinterior.tv/phaseI.html" target="_blank"><img src="http://playground.the1stmovement.com/wp-content/uploads/2007/07/interiorphasei-custom.jpg" alt="interiorphasei-custom.jpg" /></a></p>
<p>Along with that, we launched the world's first completely open, online talent casting call for a drama series.   For the next two months, hundreds of actors/actresses flocked to upload their audition videos online to <a href="http://www.youtube.com/group/theinterior" target="_blank">The Interior YouTube group</a>.  And out of the hundreds of submissions, the top five were chosen by YouTube users and in December 2006, the 4 main actors/actresses for the drama series were casted online and off to shooting in the rainforests of  Central America.</p>
<p>While they were in productions in rainforests, we launched <a href="http://blog.theinterior.tv/" target="_blank">Phase II of the Interior</a> for the cast and crew to post blogs and behind the scene videos to share.   And finally, after six months of preparations and productions, the first episode is available <strike>through invitation only</strike> on the Interior (<a href="http://www.theinterior.tv" target="_blank">http://www.theinterior.tv</a>).</p>
<p><a href="http://www.theinterior.tv" target="_blank"><img src="http://playground.the1stmovement.com/wp-content/uploads/2007/07/interior01-custom.jpg" alt="interior01-custom.jpg" /></a></p>
<p> <a href="http://playground.the1stmovement.com/viralmarketing/the-interior-new-internet-drama-series-in-private-beta/#more-43" class="more-link">(more...)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/viralmarketing/the-interior-new-internet-drama-series-in-private-beta/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Flash Player 9 (build 9.0.60.120) huge performance updates</title>
		<link>http://playground.the1stmovement.com/flash/flash-player-9-build-9060120-huge-performance-updates/</link>
		<comments>http://playground.the1stmovement.com/flash/flash-player-9-build-9060120-huge-performance-updates/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 03:53:46 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/flash/flash-player-9-build-9060120-huge-performance-updates/</guid>
		<description><![CDATA[The new Flash player Update 3 Beta 1 (build 9.0.60.120)  has some of the biggest improvements I have seen.  Download here.
Most notably, it has the new mipmaps support which will significantly improve the quality and rendering of bitmaps for Papervision 3D content.  Another one that I am really excited about is  [...]]]></description>
			<content:encoded><![CDATA[<p>The new Flash player Update 3 Beta 1 (build 9.0.60.120)  has some of the biggest improvements I have seen.  <a href="http://labs.adobe.com/technologies/flashplayer9/">Download here</a>.</p>
<p>Most notably, it has the new mipmaps support which will significantly improve the quality and rendering of bitmaps for Papervision 3D content.  Another one that I am really excited about is  multi-threaded video decoding, which means 1080p video is now possible and also full-screen mode with hardware scaling which leverages DirectX on Windows and OpenGL on OSX.</p>
<p>Read more <a href="http://www.kaourantin.net/2007/06/flash-player-update-3-beta-1.html" target="_blank">here</a> , and Full-screen mode HW <a href="http://labs.adobe.com/wiki/index.php/Flash_Player:9:Update:Full-Screen_Mode_HW" target="_blank">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/flash/flash-player-9-build-9060120-huge-performance-updates/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Adobe AIR Beta &amp; on AIR Bus Tour</title>
		<link>http://playground.the1stmovement.com/misc/adobe-air-beta-on-air-bus-tour/</link>
		<comments>http://playground.the1stmovement.com/misc/adobe-air-beta-on-air-bus-tour/#comments</comments>
		<pubDate>Mon, 11 Jun 2007 05:35:39 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/misc/adobe-air-beta-on-air-bus-tour/</guid>
		<description><![CDATA[http://labs.adobe.com/technologies/air/
Previously codenamed Apollo, Adobe launched AIR (Adobe Integrated Airtime).   This version added HTML and AJAX support so you can create an .air application without Flash.  The final version is expected to be released by end of the year.
Adobe is also taking a nationwide bus tour for developers all around the nation. The1stMovement [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://labs.adobe.com/technologies/air/">http://labs.adobe.com/technologies/air/</a></p>
<p>Previously codenamed Apollo, Adobe launched AIR (Adobe Integrated Airtime).   This version added HTML and AJAX support so you can create an .air application without Flash.  The final version is expected to be released by end of the year.</p>
<p>Adobe is also taking a nationwide bus tour for developers all around the nation. <a href="http://www.the1stmovement.com" target="_blank">The1stMovement</a> will be attending the July 16th Los Angeles one.   You can register <a href="http://onair.adobe.com/" target="_blank">here </a>for free.  Leave us a comment if you want to meet up during the event!</p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/misc/adobe-air-beta-on-air-bus-tour/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Six Ways to write more comprehensible Flash ActionScript Code</title>
		<link>http://playground.the1stmovement.com/flash/six-ways-to-write-more-comprehensible-flash-actionscript-code/</link>
		<comments>http://playground.the1stmovement.com/flash/six-ways-to-write-more-comprehensible-flash-actionscript-code/#comments</comments>
		<pubDate>Sat, 02 Jun 2007 00:37:31 +0000</pubDate>
		<dc:creator>Ming</dc:creator>
		
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://playground.the1stmovement.com/flash/six-ways-to-write-more-comprehensible-flash-actionscript-code/</guid>
		<description><![CDATA[I came across this article (six ways to write more comprehensible code) while reading the BigSpaceShip Blog.  It is definitely a good read for Flash developers as I have seen my fair share of Flash designers claim to be "developers" and write absolutely unmaintainable code.
So I thought I would take the IBM article and [...]]]></description>
			<content:encoded><![CDATA[<p>I came across this article (<a href="http://www.ibm.com/developerworks/linux/library/l-clear-code/?ca=dgr-FClnxw01linuxcodetips" target="_blank">six ways to write more comprehensible code</a>) while reading the <a href="http://labs.bigspaceship.com/blog/" target="_blank">BigSpaceShip Blog</a>.  It is definitely a good read for Flash developers as I have seen my fair share of Flash designers claim to be "developers" and write absolutely unmaintainable code.</p>
<p>So I thought I would take the IBM article and apply it specifically for Flash actionscript coding:</p>
<p><strong>1. </strong><strong>Comments</strong></p>
<p>Taken from point #1 from the IBM article:</p>
<blockquote><p>Comment your code. Obviously. If you write a procedure, fail to comment it, and return to it a few months later to rework it (and you will), not having comments will cost you time. And time is your most valuable resource. Lost time can't ever be replaced.</p>
<p>But commenting, like anything else, is a skill. You get better with practice. There is good commenting, and there is bad commenting.</p>
<p>You don't want to write too much. Suppose you write comments for a function that, in the future, saves you ten minutes of time understanding your code. Great. But suppose your comments are so verbose that it takes five minutes to write them and then, later, five minutes to read them. Then you've saved yourself zero time. Not so good.</p>
<p>You don't want to write too little, either. If code goes on for a page or two without something breaking down what's going on, well, I hope that code is clear as crystal, because otherwise you're wasting future time.</p></blockquote>
<p>The only thing I would add to it is you can minimize the use of comments by making the code self-documenting by appropriate name choices and an explicit logical structure. i.e. a Function named "getCurrentDate" needs no comment whereas "doDate" would probably need some explanation on what the function actually does</p>
<p><strong>2. </strong><strong>Constants and Variables</strong></p>
<p>Similar to point #2 in the article, I highly recommend clearly defining and differentiating variables and constants. Our naming convention has always been if it's a constant, use all caps, i.e. nSCORE (a constant named score which is a number), whereas if it's a public variable, nScore. To take it further, declare all the constants in one place, don't do it within the functions, but in the Class Variable Definition. i.e.</p>
<blockquote><p>class SomeClass {</p>
<p>public var nSCORE:Number= 100</p>
<p>....</p>
<p>}</p>
<p> <a href="http://playground.the1stmovement.com/flash/six-ways-to-write-more-comprehensible-flash-actionscript-code/#more-35" class="more-link">(more...)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://playground.the1stmovement.com/flash/six-ways-to-write-more-comprehensible-flash-actionscript-code/feed/</wfw:commentRss>
		</item>
	<feedburner:awareness xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://api.feedburner.com/awareness/1.0/GetFeedData?uri=t1mPlayground</feedburner:awareness></channel>
</rss><!-- Dynamic Page Served (once) in 0.975 seconds --><!-- Cached page served by WP-Cache -->
