<?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>The efnx code blog. &#187; interface</title>
	<atom:link href="http://efnx.com/tag/interface/feed/" rel="self" type="application/rss+xml" />
	<link>http://efnx.com</link>
	<description>code. blog.</description>
	<lastBuildDate>Tue, 15 May 2012 17:46:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>AS3 Classes and Interfaces Quicktip</title>
		<link>http://efnx.com/as3-classes-and-interfaces-quicktip/</link>
		<comments>http://efnx.com/as3-classes-and-interfaces-quicktip/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 18:37:00 +0000</pubDate>
		<dc:creator>Schell</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[interface]]></category>

		<guid isPermaLink="false">http://blog.efnx.com/?p=42</guid>
		<description><![CDATA[Interfaces in AS3 are super useful for requiring classes to support a set of public methods, enabling other classes to communicate through the interface thereby abstracting the class itself. AS3 doesn&#8217;t natively support abstract classes so using Interfaces is a good replacement in some cases, but if you&#8217;ve never used an Interface before you probably [...]]]></description>
			<content:encoded><![CDATA[<p>Interfaces in AS3 are super useful for requiring classes to support a set of public methods, enabling other classes to communicate through the interface thereby abstracting the class itself. AS3 doesn&#8217;t natively support abstract classes so using Interfaces is a good replacement in some cases, but if you&#8217;ve never used an Interface before you probably wouldn&#8217;t know how to implement it. The docs help a little, showing you how to instantiate a class using an interface with the &#8220;implements&#8221; keyword, but doesn&#8217;t go much further:</p>
<div class="codecolorer-container actionscript twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> myClass <span style="color: #0066CC;">implements</span> myInterface<span style="color: #66cc66;">&#123;</span><br />
<span style="color: #66cc66;">&#125;</span></div></div>
<p>But what if you&#8217;d like to implement a class while extending another? Well, it&#8217;s simple once you know the syntax&#8230;</p>
<div class="codecolorer-container actionscript twitlight" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> myClass <span style="color: #0066CC;">extends</span> baseClass <span style="color: #0066CC;">implements</span> myInterface <span style="color: #66cc66;">&#123;</span><br />
<span style="color: #66cc66;">&#125;</span></div></div>
<p>This is a very quick and simple tip that took me a while to find online due to the fact Adobe doesn&#8217;t mention it. Such a simple thing should be in the help docs, but I guess adobe thinks that anyone trying to use Interfaces would already know the syntax! Well now you do. </p>
]]></content:encoded>
			<wfw:commentRss>http://efnx.com/as3-classes-and-interfaces-quicktip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

