<?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: We should always use Actionscript&#8217;s &quot;this&quot; keyword</title>
	<atom:link href="http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/</link>
	<description>coder and technology lover</description>
	<lastBuildDate>Sat, 24 Jul 2010 20:37:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: me</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-5961</link>
		<dc:creator>me</dc:creator>
		<pubDate>Tue, 11 May 2010 03:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-5961</guid>
		<description>Thanx for the book reference. 
I found it, I am reading it these days.</description>
		<content:encoded><![CDATA[<p>Thanx for the book reference.<br />
I found it, I am reading it these days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Zanotti</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-5941</link>
		<dc:creator>Davide Zanotti</dc:creator>
		<pubDate>Fri, 07 May 2010 16:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-5941</guid>
		<description>First of all, I suggest you the excellent book &quot;Essential Actionscript 3&quot;: http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946/ref=sr_1_2?ie=UTF8&amp;s=books&amp;qid=1273249748&amp;sr=1-2

anyway:

instance: an object created from a class constructor (ie: instance = new Class())

method: a function related to a specific class and attached to the instance (ie: instance.method())</description>
		<content:encoded><![CDATA[<p>First of all, I suggest you the excellent book &#8220;Essential Actionscript 3&#8243;: <a href="http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946/ref=sr_1_2?ie=UTF8&#038;s=books&#038;qid=1273249748&#038;sr=1-2" rel="nofollow">http://www.amazon.com/Essential-ActionScript-3-0-Colin-Moock/dp/0596526946/ref=sr_1_2?ie=UTF8&#038;s=books&#038;qid=1273249748&#038;sr=1-2</a></p>
<p>anyway:</p>
<p>instance: an object created from a class constructor (ie: instance = new Class())</p>
<p>method: a function related to a specific class and attached to the instance (ie: instance.method())</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: me</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-5939</link>
		<dc:creator>me</dc:creator>
		<pubDate>Fri, 07 May 2010 12:42:34 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-5939</guid>
		<description>I still don&#039;t get it, that terminology of instances, methods, etc. is a bit confusing.

Instead of what word was used &#039;this&#039; ?
What would be &#039;the wrong&#039; way to do this, like without using &#039;this&#039; statement.

MyClass.myVar = myar    ?</description>
		<content:encoded><![CDATA[<p>I still don&#8217;t get it, that terminology of instances, methods, etc. is a bit confusing.</p>
<p>Instead of what word was used &#8216;this&#8217; ?<br />
What would be &#8216;the wrong&#8217; way to do this, like without using &#8216;this&#8217; statement.</p>
<p>MyClass.myVar = myar    ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide Zanotti</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-5925</link>
		<dc:creator>Davide Zanotti</dc:creator>
		<pubDate>Thu, 06 May 2010 06:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-5925</guid>
		<description>&quot;this&quot; refers specifically to the class instance</description>
		<content:encoded><![CDATA[<p>&#8220;this&#8221; refers specifically to the class instance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: me</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-5922</link>
		<dc:creator>me</dc:creator>
		<pubDate>Thu, 06 May 2010 01:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-5922</guid>
		<description>But what does &#039;this&#039; refer to?
When you say~  this.myVar = myVar;  ~what does that mean?</description>
		<content:encoded><![CDATA[<p>But what does &#8216;this&#8217; refer to?<br />
When you say~  this.myVar = myVar;  ~what does that mean?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carlos</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-4853</link>
		<dc:creator>carlos</dc:creator>
		<pubDate>Wed, 27 Jan 2010 20:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-4853</guid>
		<description>i think this is a very good jobe n examples</description>
		<content:encoded><![CDATA[<p>i think this is a very good jobe n examples</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michiel</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-3534</link>
		<dc:creator>Michiel</dc:creator>
		<pubDate>Wed, 04 Nov 2009 14:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-3534</guid>
		<description>Amen! It&#039;s amazing how many people are out there lacking the insight of using this keyword. It also provides insight into where variables are defined:
[code]
package {
 public class MyClass {
  private var myVar:String=&#039;some text&#039;;
  public function MyClass():void {
   this.myVar; // using &quot;this&quot; shows the variable is a member of the class.
   var someOtherVar:String = &#039;some other text&#039;;
   someOtherVar = this.myVar; // not using &quot;this&quot; with someOtherVar shows the variable is declared within the method, either as an argument or defined locally.
  }
 }
}
[/code]

This is just something everyone should know and use. It also makes code a lot friendlier for others using the same file.</description>
		<content:encoded><![CDATA[<p>Amen! It&#8217;s amazing how many people are out there lacking the insight of using this keyword. It also provides insight into where variables are defined:<br />
[code]<br />
package {<br />
 public class MyClass {<br />
  private var myVar:String='some text';<br />
  public function MyClass():void {<br />
   this.myVar; // using "this" shows the variable is a member of the class.<br />
   var someOtherVar:String = 'some other text';<br />
   someOtherVar = this.myVar; // not using "this" with someOtherVar shows the variable is declared within the method, either as an argument or defined locally.<br />
  }<br />
 }<br />
}<br />
[/code]</p>
<p>This is just something everyone should know and use. It also makes code a lot friendlier for others using the same file.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
