<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - specs - actionscript - 3 - as3_specification9.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T13:14:48</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#81021" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#45783" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#45691" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#45638" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#81021">
		<title>specs/actionscript/3/as3_specification9.html</title>
		<link>http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#81021</link>
		<description>FOr me the biggest advantage of interfaces is the ability to group class methods.  &lt;br /&gt;&lt;br /&gt;Instead of testing every method for existence before using it, you just check to see if the class implements a certain interface that contains that method.  If it does, you may use any of the methods in that interface without fear of it's non-existence.  Then you can also set a behaviour to occur should the interface NOT be implemented.  &lt;br /&gt;&lt;br /&gt;Thus you should get into the habit of grouping methods into interfaces and if you want a class to have those methods, extend the interface and implement all the appropriate methods.  It may seem a pain if you only need one of the 5 methods but it will save you lots of time later like I said earlier, in testing every stinking method for existence before calling it.</description>
		<dc:creator>Joe@emeraldforest</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-02-22T08:11:34</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#45783">
		<title>specs/actionscript/3/as3_specification9.html</title>
		<link>http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#45783</link>
		<description>Usually, you may use the interface type. Thus you can use any object of a class implementing the interface, even if it didn't exist when the variable definition was written. That's the main reason (polimorfism) of interfaces, not multiple inheritance.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-03-06T08:35:16</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#45691">
		<title>specs/actionscript/3/as3_specification9.html</title>
		<link>http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#45691</link>
		<description>You can use either the class or the interface as a type annotation because both represent data types.</description>
		<dc:creator>Francis Cheng</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2006-03-02T10:36:20</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#45638">
		<title>specs/actionscript/3/as3_specification9.html</title>
		<link>http://livedocs.adobe.com/specs/actionscript/3/as3_specification9.html#45638</link>
		<description>I'm still trying to understand the use of interfaces and then I saw this example and I'm more confused.&lt;br /&gt;&lt;br /&gt;should:&lt;br /&gt;var greeter : Greetings = new Greeter()&lt;br /&gt;&lt;br /&gt;be:&lt;br /&gt;var greeter : Greeter = new Greeter()&lt;br /&gt;&lt;br /&gt;and if not, why?</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2006-03-01T05:55:34</dc:date>
	</item>
	</rdf:RDF>

