<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Tahir Ahmed&#039;s Blog</title>
	<atom:link href="http://tahirahmed.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tahirahmed.wordpress.com</link>
	<description>me and my endeavors with ActionScript.</description>
	<lastBuildDate>Sat, 31 Dec 2011 16:04:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='tahirahmed.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/e10274f05f8c5113c591dea2410c2bcb?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Tahir Ahmed&#039;s Blog</title>
		<link>http://tahirahmed.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://tahirahmed.wordpress.com/osd.xml" title="Tahir Ahmed&#039;s Blog" />
	<atom:link rel='hub' href='http://tahirahmed.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Code Tip: parse variables response from backend into as3</title>
		<link>http://tahirahmed.wordpress.com/2011/08/06/code-tip-parse-variables-response-from-backend-into-as3/</link>
		<comments>http://tahirahmed.wordpress.com/2011/08/06/code-tip-parse-variables-response-from-backend-into-as3/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 18:15:04 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=291</guid>
		<description><![CDATA[Just a quick code bit I wanted to share, for those interested. Example below assumes that a response from backend is in this format: id=someID&#38;status=someStatus&#38;message=someMessage Here is how I parse it. If someone knows a better &#38; faster way; please let me know. function onResponseComplete(e:Event):void { var nameValuePairs:Array = unescape(e.target.data).split(&#8216;&#38;&#8217;); var id:String; var status:String; var [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=291&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a quick code bit I wanted to share, for those interested. Example below assumes that a response from backend is in this format:</p>
<blockquote><p>id=someID&amp;status=someStatus&amp;message=someMessage</p></blockquote>
<p>Here is how I parse it. If someone knows a better &amp; faster way; please let me know.</p>
<blockquote><p>
function onResponseComplete(e:Event):void<br />
{</p>
<div style="padding-left:30px;">
var nameValuePairs:Array = unescape(e.target.data).split(&#8216;&amp;&#8217;);<br />
var id:String;<br />
var status:String;<br />
var message:String;<br />
var i:int = 0;<br />
var length:int = nameValuePairs.length;<br />
var nameValuePair:String;<br />
var variable:String;<br />
var value:String;</p>
<p>for (i = 0; i &lt; length; ++i)<br />
{</p>
<div style="padding-left:40px;">nameValuePair = nameValuePairs[i] as String;<br />
variable = nameValuePair.substring(0, nameValuePair.indexOf(&#8216;=&#8217;));<br />
value = nameValuePair.substring(nameValuePair.indexOf(&#8216;=&#8217;) + 1, nameValuePair.length);</p>
<p>if (variable == &#8216;id&#8217;) id = value;<br />
if (variable == &#8216;status&#8217;) id = value;<br />
if (variable == &#8216;message&#8217;) id = value;</p></div>
<p>}</p></div>
<p>}
</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/291/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/291/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/291/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=291&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2011/08/06/code-tip-parse-variables-response-from-backend-into-as3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Long time no post</title>
		<link>http://tahirahmed.wordpress.com/2011/08/04/long-time-no-post/</link>
		<comments>http://tahirahmed.wordpress.com/2011/08/04/long-time-no-post/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 09:40:32 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=286</guid>
		<description><![CDATA[Wow! I have been out of blogging scene for a while now. Things have changed for me a little. I said good bye to Dubai, moved to Singapore but remained within the same network, i.e. OgilvyOne. It has been four months already here and so far I like it; both the workplace and the city. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=286&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Wow! I have been out of blogging scene for a while now.</p>
<p>Things have changed for me a little. I said good bye to Dubai, moved to Singapore but remained within the same network, i.e. OgilvyOne. It has been four months already here and so far I like it; both the workplace and the city. Lots of things learned but still lots more to go. Anyway, I will try to be regular now and keep posting about new stuff happening in my life. Ciao!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/286/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=286&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2011/08/04/long-time-no-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Busy days ..</title>
		<link>http://tahirahmed.wordpress.com/2011/02/24/busy-days/</link>
		<comments>http://tahirahmed.wordpress.com/2011/02/24/busy-days/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 18:10:28 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=279</guid>
		<description><![CDATA[Things have been pretty busy for me which is why I have been ignoring this blog. Worked on an interesting Twitter banner for a newspaper and currently working on a Facebook Flash game for a soft drink company. Both will be shared later. More to come. Happy coding. Success usually comes to those who are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=279&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Things have been pretty busy for me which is why I have been ignoring this blog. Worked on an interesting Twitter banner for a newspaper and currently working on a Facebook Flash game for a soft drink company. Both will be shared later.</p>
<p>More to come. Happy coding.</p>
<blockquote><p>Success usually comes to those who are too busy to be looking for it. ~ Henry David Thoreau</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=279&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2011/02/24/busy-days/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Offtopic: Game &#8211; Batman Arkham Asylum</title>
		<link>http://tahirahmed.wordpress.com/2010/11/27/offtopic-game-batman-arkham-asylum/</link>
		<comments>http://tahirahmed.wordpress.com/2010/11/27/offtopic-game-batman-arkham-asylum/#comments</comments>
		<pubDate>Sat, 27 Nov 2010 14:29:03 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[Offtopic]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[offtopic]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=254</guid>
		<description><![CDATA[Don&#8217;t want to do another commentary on this game as you can find plenty over the internet but I just have to say this, it is the best game I ever played. Check those videos out below and see if you can get excited too: Trailers: Official Launch Trailer Joker Trailer Villains Trailer Freeflow Combat [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=254&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Don&#8217;t want to do another commentary on this game as you can find plenty over the internet but I just have to say this, it is the best game I ever played. Check those videos out below and see if you can get excited too:</p>
<p><strong>Trailers:</strong><br />
<a href="http://www.youtube.com/watch?v=r9fSkcAYyZ8" target="_blank">Official Launch Trailer</a><br />
<a href="http://www.youtube.com/watch?v=uPnTSvX86Dw" target="_blank">Joker Trailer</a><br />
<a href="http://www.youtube.com/watch?v=02utCE9AQB4" target="_blank">Villains Trailer</a><br />
<a href="http://www.youtube.com/watch?v=sZLD5f8f8hU" target="_blank">Freeflow Combat Trailer</a></p>
<p><strong>Reviews:</strong><br />
<a href="http://www.youtube.com/watch?v=zjrszD19gzQ" target="_blank">IGN</a><br />
<a href="http://www.youtube.com/watch?v=Dr44cPRALP8" target="_blank">GameSpot</a></p>
<p><strong>Interviews:</strong><br />
<a href="http://www.youtube.com/watch?v=xjTV0fngfHc" target="_blank">Kevin Conroy (Batman&#8217;s voice)</a><br />
<a href="http://www.youtube.com/watch?v=_Y1ZHzZpmgI" target="_blank">Mark Hamill (Joker&#8217;s voice)</a></p>
<p>Now I am just waiting for Batman Arkham Asylum 2 i.e. <a href="http://www.youtube.com/watch?v=W73_hcyc6Dg" target="_blank">Batman Arkham City</a> (which is to be released sometime in 2011).</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/254/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/254/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/254/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=254&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2010/11/27/offtopic-game-batman-arkham-asylum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Volvo S60 Pinball game – Things I learnt</title>
		<link>http://tahirahmed.wordpress.com/2010/10/12/project-volvo-s60-pinball-game-things-i-learnt/</link>
		<comments>http://tahirahmed.wordpress.com/2010/10/12/project-volvo-s60-pinball-game-things-i-learnt/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 17:46:41 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=236</guid>
		<description><![CDATA[As I mentioned earlier, this is my first game project. If you have not checked it out, please do. I had so much to learn from this project. Here is a breakdown of the new stuff I ended up using: Box2DFlash Box2DFlash is the best available physics engine for flash in my opinion. I had looked [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=236&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://tahirahmed.wordpress.com/2010/10/11/volvo-s60-pinball-game/" target="_blank">As I mentioned earlier</a>, this is my first game project. If you have not checked it out, <a href="http://letsplays60.com/LetsPlay_en_gb.aspx" target="_blank">please do</a>. I had so much to learn from this project. Here is a breakdown of the new stuff I ended up using:</p>
<p><strong>Box2DFlash</strong></p>
<p><a href="http://www.box2dflash.org/" target="_blank">Box2DFlash</a> is the best available physics engine for flash in my opinion. I had looked into <a href="http://www.cove.org/ape/" target="_blank">APE (ActionScript Physics Engine)</a> and <a href="http://www.fisixengine.com/" target="_blank">Fisix Engine</a> briefly before I finally decided to go ahead with Box2DFlash. It is basically an ActionScript3 version of an opensource physics engine  <a href="http://www.box2d.org/" target="_blank">Box2D</a> developed by  <a href="http://www.gphysics.com/" target="_blank">Erin Catto</a>. The main reason which got me going with it was the richness, the details and the controls it offered me. If you are looking for a list of different physics engines available for ActionScript, Henry Jones has written a  <a href="http://henryjones.us/articles/actionscript-3-physics-engines" target="_blank">nice blog</a> covering almost all of them. The examples right there on <a href="http://www.box2dflash.org/" target="_blank">the homepage</a> of Box2DFlash, show you the capabilities of this engine. But I have to say, setting up and then getting along is quite difficult with it. This is where QuickBox2D comes in.</p>
<p><strong>QuickBox2D</strong></p>
<p><a href="http://actionsnippet.com/?page_id=1391" target="_blank">QuickBox2D</a> is basically a wrapper around Box2DFlash. <a href="http://actionsnippet.com/?page_id=3" target="_blank">Zevan Rosser</a>, the guy who created QuickBox2D puts it rightly:</p>
<blockquote><p>The main purpose of this library is to significantly simplify instantiation of rigid bodies and provide a simple way to skin rigid bodies with custom graphics.</p></blockquote>
<p>If you are looking for a comparison of what a simple task with Box2DFlash would look like with that of QuickBox2D,  <a href="http://www.emanueleferonato.com/" target="_blank">Emanuele Feronato</a> has written a <a href="http://www.emanueleferonato.com/2009/08/25/simplify-your-box2d-projects-with-quickbox2d/" target="_blank">blog tutorial using QuickBox2D</a> and a tutorial done earlier <a href="http://www.emanueleferonato.com/2008/11/20/dragging-objects-with-box2d-flash/" target="_blank">using Box2DFlash</a> alone. It clearly shows you how easy it is to setup Box2DFlash when used with QuickBox2D.</p>
<p>There is a <a href="http://active.tutsplus.com/tutorials/effects/introduction-to-quickbox2d-part-1/" target="_blank">very  well-written tutorial on tutsplus</a> which covers QuickBox2D from ground up. <a href="http://active.tutsplus.com/?s=quickbox2d" target="_blank">This series on tutsplus</a> covers most of the basic stuff for this library but at the time of this writing, the third in the series is yet to come. Plus to understand skinning, <strong>Zevan Rosser</strong> has written <a href="http://actionsnippet.com/?p=2224" target="_blank">this entry</a> and for contacts (collision detections),  <a href="http://actionsnippet.com/?p=2179" target="_blank">this series of posts</a> on his blog or just  <a href="http://actionsnippet.com/?  s=quickbox2d+contact&amp;searchsubmit=Search" target="_blank">search the term &#8220;contacts&#8221; on his blog</a> and you will see many results. For the different forces I had applied on this game on various spots, from handles, to spring, from tunnel to roads,  <a href="http://www.emanueleferonato.com/2010/02/16/understanding-box2d-applicable-forces/" target="_blank">this entry helped me understand better the available forces</a> in Box2DFlash.</p>
<p>I highly recommend that if you decide to use <strong>Box2DFlash</strong>, <strong>QuickBox2D</strong> should be used alongside. The only thing is, I am really hoping QuickBox2D keepgs getting updated to be used with the latest version of Box2DFlash. I did not miss any features but it would be very nice if both the libraries update on a regular basis.</p>
<p><strong>Robotlegs</strong></p>
<p>I had been thinking of starting to get into frameworks and all. Tried and worked with <strong>PureMVC</strong> on a couple projects but in this project I (based on a lot of hubbub over internet) used Robotlegs. And it was a good decision I made.</p>
<p>This whole idea of wiring the objects together, the events channeling through the application, model being updated only by commands, seperate Service actor for all external communications and view living its life all alone (decoupled) is so good. I absolutely loved Robotlegs. To understand better this framework, somewhere in the <a href="http://joelhooks.com/2010/05/18/slides-from-flash-and-the-city-presentation-on-robotlegs-  as3/" target="_blank">middle of  this slideshare</a> by <a href="http://joelhooks.com/" target="_blank">Joel Hooks</a>, he explains the workings of this framework. Plus  this <a href="http://johnlindquist.com/2009/11/18/robotlegs-hello-world-video-tutorial/" target="_blank">hello world video tutorial</a> by <strong>John Lindquist</strong> explains quite a bit about the framework. Then on <strong>InsideRIA</strong>, there is an introductory series by <strong>Joel Hooks</strong> starting off with the basic question, <a href="http://insideria.com/2010/06/an-introduction-to-robotlegs-a.html" target="_blank">what is Robotlegs?</a>. Then ofcourse,  the <a href="http://knowledge.robotlegs.org/" target="_blank">robotlegs community</a> is so quick in responses. Robotlegs just clicked.</p>
<p><strong>SFXR</strong></p>
<p>And just when I was in need of sound effects for my game, I saw  <a href="http://www.bit-101.com/blog/?p=2788" target="_blank">this blog post</a> by  <strong>Keith Peters</strong>. <a href="http://www.drpetter.se/project_sfxr.html" target="_blank">SFXR</a> lets you create sound effects and provides extensive control over the sound you want to generate. It then exports the sound in WAV format. There is an  <a href="http://www.superflashbros.net/as3sfxr/" target="_blank">ActionScript3 port</a> of the same (mentioned in  Keith Peter&#8217;s blog&#8217;s comments).</p>
<p><strong>Facebook ActionScript3 SDK</strong></p>
<p>I used the new <a href="http://code.google.com/p/facebook-actionscript-api/" target="_blank">Facebook ActionScript3 SDK</a> for the share with facebook functionality of the game. This api is updated by talented developers at <a href="http://gskinner.com" target="_blank">gskinner.com</a> so you expect quality and quality it is. I can finally say that the troubles of working for Facebook with ActionScript are over.</p>
<p>Overall, I had a nice experience building this game. I had been thinking of doing a game for quite some time but just was not getting any opportunity. But now that I did, I am happy with the results.</p>
<p>Phew! long post haan? <a href="http://letsplays60.com/Home_en_gb.aspx" target="_blank">Check out the game.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/236/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=236&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2010/10/12/project-volvo-s60-pinball-game-things-i-learnt/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Volvo S60 Pinball game</title>
		<link>http://tahirahmed.wordpress.com/2010/10/11/volvo-s60-pinball-game/</link>
		<comments>http://tahirahmed.wordpress.com/2010/10/11/volvo-s60-pinball-game/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 07:03:59 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=225</guid>
		<description><![CDATA[We pushed live yesterday the launch website of Volvo S60 and the site revolves around a flash pinball game. The objective of the game is to score as much as you can for a chance to win a trip to some place in Botswana (kidding; check the website for details on prizes). This is my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=225&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We pushed live yesterday the <a href="http://www.letsplays60.com/" target="_blank">launch website</a> of Volvo S60 and the site revolves around a <a href="http://www.letsplays60.com/LetsPlay_en_gb.aspx" target="_blank">flash pinball game</a>. The objective of the game is to score as much as you can for a chance to win a trip to some place in Botswana (kidding; check the website for details on prizes).</p>
<p>This is my first flash game development project and I have learned so much from it. I will be sharing the technical details about the game and the things I learned in a few days but for now, <a href="http://www.letsplays60.com/LetsPlay_en_gb.aspx" target="_blank">play the game</a> and tell me if you liked it or not.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/225/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/225/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/225/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=225&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2010/10/11/volvo-s60-pinball-game/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>The National &#8211; Infograph Facebook Application</title>
		<link>http://tahirahmed.wordpress.com/2010/07/20/the-national-infograph-facebook-application/</link>
		<comments>http://tahirahmed.wordpress.com/2010/07/20/the-national-infograph-facebook-application/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 17:39:37 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=219</guid>
		<description><![CDATA[I finally got an opportunity to work with the Facebook ActionScript API. Though, at first, everything look quite confusing and all over the place but I eventually got the application working. The funny thing however is that the final application I was able to develop does not use the ActionScript API instead I ended up [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=219&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I finally got an opportunity to work with the <a href="http://code.google.com/p/facebook-actionscript-api/">Facebook ActionScript API</a>. Though, at first, everything look quite confusing and all over the place but I eventually got the application working. The funny thing however is that the <a href="http://apps.facebook.com/thenationalpoll/">final application</a> I was able to develop does not use the ActionScript API instead I ended up using Javascript API. Why?</p>
<p>Facebook Actionscript API is good and it has its advantages but the thing that is really annoying is its <a href="http://forum.developers.facebook.com/viewtopic.php?pid=231261">login</a> process. Since the session is meant to be created and handled within flash; there is no way it can know if the user is already logged-in and thus already has a session; unless used javascript. This is where you see new windows opening up just to give you a message saying &#8220;You can now close this window&#8221; (which technically makes sense but to a user it is a WTF! moment). </p>
<p>At this point, my application was ready and I had sent around a test link to colleagues. Everything was working but then my peers started asking me that why does that window opens up even if they were already logged-in etc and I was not able to explain them what exactly was happening. </p>
<p>So then I started googling, trying to find a better way and soon found out that setting up the <a href="http://www.stevenvh.be/?p=57">connect process in javascript</a> is a better option even for flash applications. Though, there are a <a href="http://becarella.com/post/224145998/facebook-authentication-with-the-actionscript-api">number</a> of <a href="http://riajournal.com/ria/index.php/2009/04/16/facebook-connect-to-actionscript-3/">solutions</a> out there to get you started using the Javascript API I am mentioning but I ended up using <a href="http://www.milkisevil.com/blog/2010/going-social-in-actionscript-3/">Philip Bulley&#8217;s solution</a>.</p>
<p>Overall, it was a good experience for me to get started in the Facebook world of development. <a href="http://apps.facebook.com/thenationalpoll/">Take a look</a> at what I&#8217;ve been able to create.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/219/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/219/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/219/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=219&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2010/07/20/the-national-infograph-facebook-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Castrol &#8211; Cheer with Castrol</title>
		<link>http://tahirahmed.wordpress.com/2010/06/10/castrol-cheer-with-castrol/</link>
		<comments>http://tahirahmed.wordpress.com/2010/06/10/castrol-cheer-with-castrol/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 17:20:09 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Project]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=210</guid>
		<description><![CDATA[I just pushed one of my recent projects live. A few new things I learnt during this project and experimented with were; SWFAddress I have never used it before and yes I am very late on it. SWFAddress is indeed a helpful tool for Flash and Ajax developers. Local Shared Object A very handy utility [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=210&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I just pushed one of my recent projects live. A few new things I learnt during this project and experimented with were; </p>
<p><strong>SWFAddress</strong></p>
<p>I have never used it before and yes I am very late on it. <a href="http://www.asual.com/swfaddress/">SWFAddress</a> is indeed a helpful tool for Flash and Ajax developers. </p>
<p><strong>Local Shared Object</strong></p>
<p>A very handy utility to store temporary (or permanent) settings or data on user&#8217;s machine to make the user-experience even better. I used <a href="http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/SharedObject.html">LSO </a>to store the values of the fields and other choices the user selects.</p>
<p><strong>Casalib</strong></p>
<p>I have already <a href="http://tahirahmed.wordpress.com/2010/03/09/things-i-learnt-recently/">blogged about it before</a>; I am absolutely in love with <a href="http://casalib.org/">Casalib</a>. I used a number of classes of this package in this project but video loading using <a href="http://as3.casalib.org/docs/org_casalib_load_VideoLoad.html">VideoLoad</a> class of this package has never been so easy for me. </p>
<p><a href="http://www.cheerwithcastrol.com/">Have a look and have your say.</a> Oh! and it is in Arabic though.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/210/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/210/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/210/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=210&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2010/06/10/castrol-cheer-with-castrol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Code Tip: Copying image files along with an AIR application</title>
		<link>http://tahirahmed.wordpress.com/2010/03/20/codetip-copying-image-files-along-with-an-air-application/</link>
		<comments>http://tahirahmed.wordpress.com/2010/03/20/codetip-copying-image-files-along-with-an-air-application/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 08:41:05 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[Tip]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=177</guid>
		<description><![CDATA[*** UPDATE *** In my post below; I am mentioning 1 out of 2 possible ways of embedding image (or any other format for that matter) into an AS3 project but here is link to a detailed post by Renaun Erickson mentioning both the techniques. *** I have been developing an Adobe AIR application for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=177&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>*** UPDATE ***<br />
In my post below; I am mentioning 1 out of 2 possible ways of embedding image (or any other format for that matter) into an AS3 project but here is <a href="http://renaun.com/blog/2010/03/22/374/" target="_blank">link to a detailed post</a> by <a href="http://renaun.com/blog/" target="_blank">Renaun Erickson</a> mentioning both the techniques.<br />
***</p>
<p>I have been developing an Adobe AIR application for the last 2-3 weeks and so far, it has only been a simple yet big (in terms of content) interactive presentation running on the desktop. Just recently, I was asked to see if there is any way some images could be copied to user&#8217;s desktop when the application is being installed or is being run so that the user can select those images to set as wallpaper.</p>
<p>As always, I started my journey with googling but soon realized that there is no direct way of copying images from development environment to a user&#8217;s desktop via AIR application. The solution I figured out was as follows and please, if someone knows a better way around this; let me know.</p>
<p>As a note; my main development IDE was Flash CS4 Professional and I used FlashDevelop as code-editor.</p>
<p>I first embedded the images I wanted to carry with my application using the <strong>[Embed]</strong> metadata tag; which is a part of <a href="http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK" target="_blank">Flex SDK</a>. Attached a <strong>Class</strong> to it obviously and then instantiated in code.</p>
<p><code>[Embed(source='../../../../Library/wallpaper.jpg')]<br />
private var	Wallpaper	:Class;<br />
private var	wallpaper	:Bitmap	=	new	Wallpaper ();</code></p>
<p>Then it was about creating a folder on user&#8217;s desktop. It uses <strong>File</strong> class of <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/" target="_blank">AIR API.</a></p>
<p><code>var	directory	:File	=	File.desktopDirectory.resolvePath ( 'Wallpapers' );<br />
directory.createDirectory ();</code></p>
<p>Then it was about writing a JPG file.</p>
<p><code>this.file	=	File.desktopDirectory.resolvePath ( 'Wallpapers/Wallpaper.jpg' );</code></p>
<p>The above code doesn&#8217;t write the file instantly as you can see we haven&#8217;t yet connected our embedded image to this file in anyway but instead it creates a placeholder, a blank image file which has nothing but 0 bytes yet.</p>
<p>The <strong>FileStream</strong> class of <strong>AIR API</strong> is the one providing the necessary methods of opening/reading/writing bytes on a file but since it only allows <strong>ByteArray</strong> to be written on to a <strong>File</strong> instance, I had to first convert my embedded image data into <strong>ByteArray</strong> data. <a href="http://code.google.com/p/as3corelib/" target="_blank">as3corelib</a> comes in handy again. <strong>JPGEncoder</strong> class of this package provides us with <strong>encode</strong> method which converts <strong>BitmapData</strong> to <strong>ByteArray</strong>.</p>
<p><code>var imageByteArray:ByteArray = this.jpgEncoder.encode ( this.wallpaper.bitmapData );</code></p>
<p>And finally, it was about opening the <strong>File</strong> instance and feeding this <strong>imageByteArray</strong> data to it using our <strong>FileStream</strong> instance.</p>
<p><code>this.outputProgressed.addOnce ( this.onProgress_CopyFiles );<br />
this.fileStream.openAsync ( this.file, FileMode.WRITE );<br />
this.fileStream.writeBytes ( imageByteArray );</code></p>
<p>I used <strong>openAsync</strong> instead of <strong>open</strong> because I wanted <a href="http://www.funky-monkey.nl/blog/2009/01/13/synchronous-vs-asynchonous/" target="_blank">the other code to run at the same time while the images were being copied in the background.</a> Plus, since I used Robert Penner&#8217;s <a href="http://github.com/robertpenner/as3-signals" target="_blank">AS3Signals</a> as my main event mechanism throughout this application, I used the lovely <strong>addOnce</strong> method to make sure the listener object gets removed once the event is fired.</p>
<p>P.S. <a href="http://www.robertpenner.com/flashblog/" target="_blank">Robert Penner</a> has compiled a <a href="http://wiki.github.com/robertpenner/as3-signals/community-examples" target="_blank">list of examples of AS3Signals</a> for those who are interested in giving it a try.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/177/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/177/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/177/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=177&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2010/03/20/codetip-copying-image-files-along-with-an-air-application/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
		<item>
		<title>Things I learnt recently</title>
		<link>http://tahirahmed.wordpress.com/2010/03/09/things-i-learnt-recently/</link>
		<comments>http://tahirahmed.wordpress.com/2010/03/09/things-i-learnt-recently/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 08:36:52 +0000</pubDate>
		<dc:creator>Tahir Ahmed</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[WorkFlow]]></category>
		<category><![CDATA[External link]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://tahirahmed.wordpress.com/?p=167</guid>
		<description><![CDATA[For the last few months, I have been experimenting and playing a lot with different techniques and code frameworks just to improve my Flash/ActionScript skills overall. Stuff like SWC compilation, creating code-snippets are not something new and people have already mastered these arts but as I feel very new in Flash world and as I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=167&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For the last few months, I have been experimenting and playing a lot with different techniques and code frameworks just to improve my Flash/ActionScript skills overall.</p>
<p>Stuff like SWC compilation, creating code-snippets are not something new and people have already mastered these arts but as I feel very new in Flash world and as I feel there is a lot for me to learn, I thought I should share some the things I recently discovered.</p>
<p><strong>SWC compilation</strong></p>
<p>I have been using (and still use) Flash Professional IDE as my main development IDE for project compilation for the last three years or so but recently I had a little chat with one of my seniors (<a href="http://www.milkisevil.com/" target="_blank">Philip Bulley</a>, the guy who got me going in Flash) about the different ways of compiling a SWF file. I had my arguments (typically because I was in my comfort zone using Flash IDE) but he convinced me as always to adopt to ActionScript-only projects so I can just use Flash IDE for assets creation.</p>
<p>Reasons like fast compilation, adding wrapper on top of classes whenever need be (since in Flash, if you have a movieclip structure in place and later on you feel there is a need to change/alter it, it is very difficult) and a pure Object-Oriented feel (instantiation of assets, removal when done) were good enough for me to give it a thought. I am looking forward to feature projects which will certainly be based on <a href="http://www.flashdevelop.org/wikidocs/index.php?title=AS3:FlexAndFlashCS3Workflow" target="_blank">ActionScript-only approach using FlashDevelop</a>.</p>
<p><strong>FlashDevelop&#8217;s code snippets and code generation</strong></p>
<p>Everyone knows about the usefulness of code snippets and if these snippets are quickly accessible, what else do you want. In my classes, most of the public functions (after implementing an Interface) are same and I use to write them and indent them and comment them again and again. Too be honest, after exploration of <a href="http://www.flashdevelop.org/wikidocs/index.php?title=Features:Generation" target="_blank">code snippets in FlashDevelop</a>, I feel like I have been so stupid. Trust me, whichever your ActionScript Editor is, create and store your little gems, and use them as needed as all of the editors come with this feature of storing snippets.</p>
<p><strong>AS3Signals</strong></p>
<p>Oh <a href="http://www.robertpenner.com/flashblog/" target="_blank">Robert Penner</a>, I owe you for that one; you are the man <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . <a href="http://github.com/robertpenner/as3-signals" target="_blank">AS3Signals</a> is simply fantastic. With <a href="http://alecmce.com/as3/events-and-signals-performance-tests" target="_blank">different</a> <a href="http://jacksondunstan.com/articles/573" target="_blank">tests</a> showing the speed of this event mechanism and a <a href="http://www.peterelst.com/blog/2010/03/01/looking-back-at-flexbeach/" target="_blank">presentation</a> and a <a href="http://pv3d.org/2010/01/21/as3-signals-tutorial/" target="_blank">video tutorial</a> showing how easy it is to use Signals, there is no reason ActionScript Developers should give it a try. Lot can be (and <a href="http://www.google.com/search?hl=en&amp;rlz=1C1GGLS_enAE355AE355&amp;q=as3+signals&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=" target="_blank">has been</a>) said about as3signals, but I will keep it for you to explore. Oh and btw, an <a href="http://jacksondunstan.com/articles/585" target="_blank">enhancement to as3signals</a> is going on as well which, to be very honest, is going over my head. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>formatString function</strong></p>
<p>I just didn&#8217;t know how handy could <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/statements.html#..._(rest)_parameter" target="_blank">&#8230; rest</a> really be before I got into <a href="http://stackoverflow.com/questions/2298766/programming-tests-for-flash-developers/2299775#2299775" target="_blank">this</a> situation (i.e. <strong>formatString</strong> function). Check <a href="http://stackoverflow.com/questions/2298766/programming-tests-for-flash-developers/2309094#2309094" target="_blank">this</a> little function I created out of curiousity. Little things matter a lot sometimes.</p>
<p><strong>Casalib ActionScript Library</strong></p>
<p>I downloaded <a href="http://casalib.org/" target="_blank">CASALib</a> quite a while ago and the utility functions (the ones I have used so far) are very handy in everyday projects. Everytime I google for some helper class, I find it under casalib library, right under my nose.</p>
<p>Look at <a href="http://as3.casalib.org/docs/" target="_blank">Inactivity class</a> of <strong>time</strong> package for instance, wouldn&#8217;t you want to decrease stage&#8217;s framerate when the user is idle for some time (i.e. the mouse is not moving at all), I would, on all projects actually. Essentially, it is a matter of adding timers and checking if the last mouse position is equal to the new position, but who would do that if someone has already done that and with additional functionality. So, kudos to Casalib for a great package of useful classes.</p>
<p><strong>FlashPlayer 10 3D</strong></p>
<p>I am done with it. I am done playing with FlashPlayer 10&#8242;s 3D capabilities. Oh! why did I develop two projects using it, I should&#8217;ve used Papervision3D.</p>
<p>Anyways, I will give any external 3D library a try on my next 3D-based project.</p>
<p>That&#8217;s it. There is obviously a lot that I need to learn and master and I will Insha Allah.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tahirahmed.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tahirahmed.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tahirahmed.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tahirahmed.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tahirahmed.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tahirahmed.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tahirahmed.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tahirahmed.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tahirahmed.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tahirahmed.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tahirahmed.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tahirahmed.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tahirahmed.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tahirahmed.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=tahirahmed.wordpress.com&amp;blog=9763224&amp;post=167&amp;subd=tahirahmed&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://tahirahmed.wordpress.com/2010/03/09/things-i-learnt-recently/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Tahir Ahmed</media:title>
		</media:content>
	</item>
	</channel>
</rss>
