<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to use interface in ActionScript 3</title>
	<atom:link href="http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/</link>
	<description>Flash, ActionScript, SEO and everything in between</description>
	<lastBuildDate>Wed, 10 Mar 2010 23:19:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Weeble</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-4620</link>
		<dc:creator>Weeble</dc:creator>
		<pubDate>Tue, 15 Dec 2009 14:31:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-4620</guid>
		<description>very usefull explanation, I&#039;ve struggled to get my head round this for a while now and you helped clear it up. Thanks!</description>
		<content:encoded><![CDATA[<p>very usefull explanation, I&#8217;ve struggled to get my head round this for a while now and you helped clear it up. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brecht</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-3942</link>
		<dc:creator>brecht</dc:creator>
		<pubDate>Fri, 28 Aug 2009 10:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-3942</guid>
		<description>Well i guess you can just cast to DisplayObject everytime you need a property but still...</description>
		<content:encoded><![CDATA[<p>Well i guess you can just cast to DisplayObject everytime you need a property but still&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brecht</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-3941</link>
		<dc:creator>brecht</dc:creator>
		<pubDate>Fri, 28 Aug 2009 10:38:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-3941</guid>
		<description>this doesn&#039;t work because you can&#039;t call the displayObject specific parameters like x, y, addEventListener and so on.   There has to be another way to make movieclips subject to an interface without losing it&#039;s displayObject specific methods and params. Anyone?</description>
		<content:encoded><![CDATA[<p>this doesn&#8217;t work because you can&#8217;t call the displayObject specific parameters like x, y, addEventListener and so on.   There has to be another way to make movieclips subject to an interface without losing it&#8217;s displayObject specific methods and params. Anyone?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-3923</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Wed, 19 Aug 2009 22:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-3923</guid>
		<description>You can also use the &quot;as&quot; parameter.

var newMonster:IMonster = new ScaryMonster ();
addChild (newMonster as DisplayObject);</description>
		<content:encoded><![CDATA[<p>You can also use the &#8220;as&#8221; parameter.</p>
<p>var newMonster:IMonster = new ScaryMonster ();<br />
addChild (newMonster as DisplayObject);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fraanske</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-3841</link>
		<dc:creator>Fraanske</dc:creator>
		<pubDate>Tue, 14 Jul 2009 18:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-3841</guid>
		<description>if (monsterInstance as IMonster)
{
    // monsterInstance implements IMonster
} else {
    // monsterInstance does not implement IMonster
}

trace(monsterInstance as IMonster)
// Traces either a monsterInstance or null

This is the simplest Interface check I could come up with.</description>
		<content:encoded><![CDATA[<p>if (monsterInstance as IMonster)<br />
{<br />
    // monsterInstance implements IMonster<br />
} else {<br />
    // monsterInstance does not implement IMonster<br />
}</p>
<p>trace(monsterInstance as IMonster)<br />
// Traces either a monsterInstance or null</p>
<p>This is the simplest Interface check I could come up with.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ad</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-3474</link>
		<dc:creator>ad</dc:creator>
		<pubDate>Sun, 26 Apr 2009 20:34:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-3474</guid>
		<description>Just tried this for the first time and found no need for casting.</description>
		<content:encoded><![CDATA[<p>Just tried this for the first time and found no need for casting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Giotta</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-3459</link>
		<dc:creator>John Giotta</dc:creator>
		<pubDate>Thu, 16 Apr 2009 13:43:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-3459</guid>
		<description>Interace is useful when dealing with shared asset libraries as well. You may refer to the interface class in the application for general definitions of what implementing class will define. Much like intrinsic did for AS2.</description>
		<content:encoded><![CDATA[<p>Interace is useful when dealing with shared asset libraries as well. You may refer to the interface class in the application for general definitions of what implementing class will define. Much like intrinsic did for AS2.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zedia.net</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-3427</link>
		<dc:creator>zedia.net</dc:creator>
		<pubDate>Sat, 28 Mar 2009 19:50:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-3427</guid>
		<description>You can in Actionscript 3 use the &lt;em&gt;is&lt;/em&gt; keyword like this:

if (entityList[i] is IBar) {

I have used it and it works perfectly.</description>
		<content:encoded><![CDATA[<p>You can in Actionscript 3 use the <em>is</em> keyword like this:</p>
<p>if (entityList[i] is IBar) {</p>
<p>I have used it and it works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: red tuttle</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-3426</link>
		<dc:creator>red tuttle</dc:creator>
		<pubDate>Sat, 28 Mar 2009 19:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-3426</guid>
		<description>Is there an easy way to check if a particular object implements an interface?  

I have a collection of objects of type IFoo, of which any of them may or may not implement a certain interface, maybe IBar or whatever. 

in C# I would do:

if (foo.type is IBar)

But &lt;i&gt;is&lt;/i&gt; is not a keyword in CS3</description>
		<content:encoded><![CDATA[<p>Is there an easy way to check if a particular object implements an interface?  </p>
<p>I have a collection of objects of type IFoo, of which any of them may or may not implement a certain interface, maybe IBar or whatever. </p>
<p>in C# I would do:</p>
<p>if (foo.type is IBar)</p>
<p>But <i>is</i> is not a keyword in CS3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve76</title>
		<link>http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/comment-page-1/#comment-3396</link>
		<dc:creator>steve76</dc:creator>
		<pubDate>Wed, 18 Mar 2009 16:02:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.zedia.net/2008/how-to-use-interface-in-actionscript-3/#comment-3396</guid>
		<description>@post 10
I think that You never will do a cast in the Paul code.
You can use myMonster as MovieClip or implementation of a IMonster interface without casting in every method that receive as parameters or an MovieClip or an IMonster.

I&#039;m a newbee from the point of view of AS3, but I work with PHP5, C++, Java and so on and that is the main rule ( I suppose so ). am I in fault for AS3?

Bye,Ste</description>
		<content:encoded><![CDATA[<p>@post 10<br />
I think that You never will do a cast in the Paul code.<br />
You can use myMonster as MovieClip or implementation of a IMonster interface without casting in every method that receive as parameters or an MovieClip or an IMonster.</p>
<p>I&#8217;m a newbee from the point of view of AS3, but I work with PHP5, C++, Java and so on and that is the main rule ( I suppose so ). am I in fault for AS3?</p>
<p>Bye,Ste</p>
]]></content:encoded>
	</item>
</channel>
</rss>
