<?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>zedia flash blog &#187; design patterns</title>
	<atom:link href="http://www.zedia.net/category/design-patterns/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zedia.net</link>
	<description>Flash, ActionScript, SEO and everything in between</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:58:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Composition vs Inheritance</title>
		<link>http://www.zedia.net/2007/composition-vs-inheritance/</link>
		<comments>http://www.zedia.net/2007/composition-vs-inheritance/#comments</comments>
		<pubDate>Thu, 22 Nov 2007 02:10:07 +0000</pubDate>
		<dc:creator>zedia.net</dc:creator>
				<category><![CDATA[design patterns]]></category>
		<category><![CDATA[ActionScript 2]]></category>
		<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Design Paterns]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.zedia.net/2007/composition-vs-inheritance/</guid>
		<description><![CDATA[I have been reading a lot these days about composition and inheritance. Inheritance is a pretty easy concept to grasp; composition on the other side is a bit more complicated. I have read quite a bit and I found much more advocates of composition than of inheritance. At least, with all this reading, i finally [...]]]></description>
			<content:encoded><![CDATA[<p>I have been reading a lot these days about composition and inheritance. Inheritance is a pretty easy concept to grasp; composition on the other side is a bit more complicated. I have read quite a bit and I found much more advocates of composition than of inheritance. At least, with all this reading, i finally understood what interfaces were used for. I started looking on the subject because I had 2 problems, my first one in ActionScript 2 where I had 4 symbols all using the same base class. This worked good until I had to import that swf into another swf. Than it was as if Flash was using an older version of my swf. My second problem in ActionScript 3, I was working on a button class using 2 symbol on the stage. All these button were to use the same code so I wanted to extend another class; no can&#8217;t do because it cannot find definition for the symbols on stage in the superclass&#8230; Well I think I am going to use composition for the latest problem, but I haven&#8217;t found a solution for the first one&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zedia.net/2007/composition-vs-inheritance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

