<?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>Murtuza Topiwalla &#187; super</title>
	<atom:link href="http://www.sowebme.com/murtaza/tag/super/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sowebme.com/murtaza</link>
	<description>Blog about flash, movies, travel and more! Email me at yankeedoodles[at]hotmail[dot]com for anything you want to add!</description>
	<lastBuildDate>Wed, 13 Oct 2010 02:32:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Super in AS3 &#8211; An explanation.</title>
		<link>http://www.sowebme.com/murtaza/2009/07/superas3/</link>
		<comments>http://www.sowebme.com/murtaza/2009/07/superas3/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 09:19:00 +0000</pubDate>
		<dc:creator>Murtuza</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[super]]></category>

		<guid isPermaLink="false">http://www.sowebme.com/murtaza/?p=46</guid>
		<description><![CDATA[Hello, today I was wondering what the super keyword in AS3 did while they were used in classes. Initially it seemed like it was the constructor for the base class. However after exploring a bit deeper, I realised that there was more to super than it seemed. So here is a scenario. ChildClass.as extends ParentClass.as [...]]]></description>
			<content:encoded><![CDATA[<p>Hello, today I was wondering what the super keyword in AS3 did while they were used in classes. Initially it seemed like it was the constructor for the base class. However after exploring a bit deeper, I realised that there was more to super than it seemed.</p>
<p>So here is a scenario.</p>
<p><em><span style="color: #ffcc99;">ChildClass.as extends ParentClass.as which requires a string in its constructor. </span></em><br />
SO, in this case a super is required from ChildClass to pass in the string value that its base class requires. This is extremely important during events and is really apparent then. I will explain how to use, and manipulate events to your advantage in some other post.</p>
<p>Getting back to super, I also found out, not like its some great accomplishment, that you can run other items from parent, just so long as it does not conflict with the required parameters. So in the above scenario, ChildClass.as can run some other independent functions BEFORE running the super. So what you may ask. But this means you can actually append and modify the value of the super from its parent before you pass the super into the parent. IE, say for example your ParentClass wants to always add &#8221; good bye&#8221; to the end of the string to be passed into its constructor, you could have a function that returns that value to your child and then from your child pass it to the constructor. Yeah, I am lost in my own post too!</p>
<p>Luckily, I found a person who made some kind of really really great example. I don&#8217;t remember who it was though, as I was searching all over for an example. If you are the owner please contact me for your credits here. Meanwhile, you guys can download the modified super example here.</p>
<p><a href="http://www.sowebme.com/murtaza/wp-content/uploads/2009/07/Super.zip">Download link for super example</a></p>
<p>Feel free to leave any comments and ask anything you want here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sowebme.com/murtaza/2009/07/superas3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

