<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Richard Zetterberg @ paralyZed - Flash/Flex development</title>
	<atom:link href="http://paralyzed.se/feed/" rel="self" type="application/rss+xml" />
	<link>http://paralyzed.se</link>
	<description>Richard Zetterberg @ paralyZed - Creative development with actionscript 3, php and python</description>
	<lastBuildDate>Wed, 24 Feb 2010 09:43:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A Small update</title>
		<link>http://paralyzed.se/2010/02/24/a-small-update/</link>
		<comments>http://paralyzed.se/2010/02/24/a-small-update/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 09:43:45 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Freelancing]]></category>

		<guid isPermaLink="false">http://paralyzed.se/?p=526</guid>
		<description><![CDATA[I decided to start writing small updates about what&#8217;s currently going on, rather than only writing guides and such. I think it&#8217;s a bit more interesting to have 1-3 new posts every week rather than one every two weeks. So here it goes.
Portfolio time!
Last week I finally got the chance to start developing my portfolio. [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to start writing small updates about what&#8217;s currently going on, rather than only writing guides and such. I think it&#8217;s a bit more interesting to have 1-3 new posts every week rather than one every two weeks. So here it goes.</p>
<h2>Portfolio time!</h2>
<p>Last week I finally got the chance to start developing my portfolio. It&#8217;s very nice to start seeing the design coming to life. I&#8217;m particularly excited about this portfolio, just because it&#8217;s a concept that very much shows who I am personally and at the same time is ment to show my work. I like the mixture.</p>
<p>We&#8217;ll see what the result will be in the end. I bet Mr. Personal-criticism will come along and kick me in the ass eventually. But until then I will enjoy my time with Ms. Narcissism!</p>
<h2>Reading books, eh?</h2>
<p>I have started reading Code Complete 2nd edition. Even though I have read about 4,5% of the book I must say that I have learnt a lot and have gotten super inspired. I&#8217;m now trying to make more pre-work before sitting down coding as a result of reading this book; Acknowledging the potential problems, taking on a architectural role and plan my time better. My workflow before was that I sat down started coding the first thing I did. All problems and planning came along as I was coding. I must say that this new way has made me develop better software with less errors in less time.</p>
<h2>What next?</h2>
<p>As of now I&#8217;m working on 3 sites at the same time during a period of 2 weeks. In reality I need 4 weeks, got to love this industry. A good thing is that I might be doing a very large flash site after these 2 weeks. Which is just perfect since I have started reading the book I was telling you about before to help me develop larger sites and work more efficient.</p>
<p>Well I have train to catch, I&#8217;m going to Stockholm for a meeting. Hopefully I will be able to launch my portfolio soon.</p>
<p>Thanks for reading<br />
 <strong><em>Richard Zetterberg</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://paralyzed.se/2010/02/24/a-small-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Books, books, books</title>
		<link>http://paralyzed.se/2010/02/08/books-books-books/</link>
		<comments>http://paralyzed.se/2010/02/08/books-books-books/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 13:15:34 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Flash/Flex development]]></category>
		<category><![CDATA[Freelancing]]></category>

		<guid isPermaLink="false">http://paralyzed.se/?p=519</guid>
		<description><![CDATA[I have just ordered 3 books which I think will help me a lot. During my time programming so far I haven&#8217;t read any books, I have only experimented myself and read blogs, documentations and such. So I think it could be good to broaded my view by trying another source of information.
The books
The first [...]]]></description>
			<content:encoded><![CDATA[<p>I have just ordered 3 books which I think will help me a lot. During my time programming so far I haven&#8217;t read any books, I have only experimented myself and read blogs, documentations and such. So I think it could be good to broaded my view by trying another source of information.</p>
<h2>The books</h2>
<p>The first book I bought was<strong> <a href="http://www.amazon.com/Code-Complete-Practical-Handbook-Construction/dp/0735619670/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1265634027&amp;sr=8-1">Code Complete 2nd edition</a> </strong>which is a book about best practises and techniques written by Steve McConnell. In my opinion these subjects are something which is always good to read about, even if you are well experienced.</p>
<p>The second book I bought was <strong><a href="http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1265634284&amp;sr=1-1">Design Patterns: Elements of Reusable Object-Oriented Software</a></strong> written by the <a href="http://c2.com/cgi/wiki?GangOfFour">GOF.</a> Don&#8217;t worry, I&#8217;m not going to become a design pattern zealot! I think that design patterns are powerful tools, when used when they are needed, and not always.</p>
<p>The third book I bought was <strong><a href="http://www.amazon.com/Code-Book-Science-Secrecy-Cryptography/dp/0385495323/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1265634500&amp;sr=1-1">The Code Book: The Science of Secrecy from Ancient Egypt to Quantum Cryptography</a></strong> written by Simon Singh. Even though this book might not be a hundred percent directed to programming I think that cryptography is very interesting and good to learn. Especially when you aren&#8217;t working with it mainly on a daily basis. I think that when you do different things from what you usually do, that&#8217;s when you learn new useful things.</p>
<h2>Soon!</h2>
<p>I&#8217;m looking forward until I get a text saying that the package with the books have been delivered. After I have read all the books I will probably give a quick review of the books, which you can look forward to.</p>
<p>Until then &#8211; Cheers<br />
 <strong><em>Richard Zetterberg</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://paralyzed.se/2010/02/08/books-books-books/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Portfolio sneak preview</title>
		<link>http://paralyzed.se/2010/02/02/portfolio-sneak-preview/</link>
		<comments>http://paralyzed.se/2010/02/02/portfolio-sneak-preview/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 08:55:11 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Flash/Flex development]]></category>
		<category><![CDATA[Freelancing]]></category>

		<guid isPermaLink="false">http://paralyzed.se/?p=504</guid>
		<description><![CDATA[Lately I have been designing my new portfolio. And to be honest, it&#8217;s pretty hard when you aren&#8217;t used to designing anymore. But I think I have a great concept for it, and it&#8217;s turning out pretty well.
I&#8217;m actually quite enjoying it. Just because I am able to take all the time I need to [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been designing my new portfolio. And to be honest, it&#8217;s pretty hard when you aren&#8217;t used to designing anymore. But I think I have a great concept for it, and it&#8217;s turning out pretty well.</p>
<p>I&#8217;m actually quite enjoying it. Just because I am able to take all the time I need to think and experiment with it. And the fact that I can really develop the concept.</p>
<p>So what&#8217;s the concept like? Well, imagine steam punk mixed with an old linux console, grunge, gaming, heavy metal, riddles and lots of easter eggs. I can&#8217;t really explain it in words. I&#8217;ll let the images speak for themselves:</p>
<p><strong>Loading screen:</strong></p>
<p><a href="http://paralyzed.se/wp-content/uploads/screen1.jpg"><img class="alignnone size-full wp-image-510" title="screen1" src="http://paralyzed.se/wp-content/uploads/screen1.jpg" alt="screen1" width="430" height="300" /></a></p>
<p><br class="spacer_" /></p>
<p><strong>Showcase screen:</strong></p>
<p><a href="http://paralyzed.se/wp-content/uploads/screen2.jpg"><img class="alignnone size-full wp-image-511" title="screen2" src="http://paralyzed.se/wp-content/uploads/screen2.jpg" alt="screen2" width="430" height="300" /></a></p>
<p><br class="spacer_" /></p>
<p><strong>About me screen:</strong></p>
<p><a href="http://paralyzed.se/wp-content/uploads/screen3.jpg"><img class="alignnone size-full wp-image-512" title="screen3" src="http://paralyzed.se/wp-content/uploads/screen3.jpg" alt="screen3" width="430" height="300" /></a></p>
<p><br class="spacer_" /></p>
<p>Obviously I don&#8217;t want to show you too much. But that should be enough to make you interested.</p>
<p>Cheers<br />
 <em><strong>Richard Zetterberg</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://paralyzed.se/2010/02/02/portfolio-sneak-preview/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using event listeners on a static class</title>
		<link>http://paralyzed.se/2010/01/14/using-event-listeners-on-a-static-class/</link>
		<comments>http://paralyzed.se/2010/01/14/using-event-listeners-on-a-static-class/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 12:25:24 +0000</pubDate>
		<dc:creator>Richard</dc:creator>
				<category><![CDATA[Flash/Flex development]]></category>

		<guid isPermaLink="false">http://paralyzed.se/?p=475</guid>
		<description><![CDATA[This post will show you how to use the methods addEventListener and removeEventListener on a static class.
Why?
This is useful when you want to have a class which all classes can listen to events for. For example you have a class which loads some type of assets and you want to be able to know in [...]]]></description>
			<content:encoded><![CDATA[<p>This post will show you how to use the methods <strong>addEventListener </strong>and <strong>removeEventListener </strong>on a static class.</p>
<h2>Why?</h2>
<p>This is useful when you want to have a class which all classes can listen to events for. For example you have a class which loads some type of assets and you want to be able to know in multiple classes when that class has finished loading. This way you don&#8217;t have to pass around the instance for that loader class to all classes who needs to know when you have finished loading.</p>
<h2>Let&#8217;s look at some code</h2>
<p>Since the <strong>addEventListener </strong>and <strong>removeEventListener </strong>aren&#8217;t static methods we have to create them ourselves. But which object will recieve the event listener? It can&#8217;t be the class itself because then we have to instantiate it. Instead we add a dispatcher as a variable in the class. Like this:</p>
<pre name="code" class="php">
package{
    public class StaticDispatcher{

        private static var eventDispatcher:EventDispatcher = new EventDispatcher();

        public static function addEventListener(type:String, callback:Function):void{
            eventDispatcher.addEventListener(type, callback);
        }

        public static function removeEventListener(type:String, callback:Function):void{
            eventDispatcher.removeEventListener(type, callback);
        }
    }
}
</pre>
<h2>Conclusion</h2>
<p>Very easy, but really powerful. I used this in a loader class which had multiple loaders, to be able to know when all the loaders where finished.</p>
<p>I guess it&#8217;s another way of using that class as a singleton. Usually you instantiate the class and then add code so that you can only do it once, and then make that instance globally accessable. But this way works really good. I hope someone will find this useful.</p>
<p><strong><em>Richard Zetterberg</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://paralyzed.se/2010/01/14/using-event-listeners-on-a-static-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
