<?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>Objective C, iOS and more programming stuff</description>
	<lastBuildDate>Fri, 03 Feb 2012 17:32:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: xixixao</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-11612</link>
		<dc:creator>xixixao</dc:creator>
		<pubDate>Thu, 28 Oct 2010 13:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-11612</guid>
		<description>Neither of those, I use THIS only inside of a constructor, for assigning a value to an attribute of the same name as the parameter.
1) never had problem with differentiating static and dynamic attributes
2) that is evident from the scope and avoid using the same names outside of constructor
3) -&gt; FlashDevelop - ctrl+space brings up the hints, no need for this
4) I dont use underscore though, it is very ugly, not easily readable, usually people who transferred from AS2 use it - I use proper variable names</description>
		<content:encoded><![CDATA[<p>Neither of those, I use THIS only inside of a constructor, for assigning a value to an attribute of the same name as the parameter.<br />
1) never had problem with differentiating static and dynamic attributes<br />
2) that is evident from the scope and avoid using the same names outside of constructor<br />
3) -&gt; FlashDevelop &#8211; ctrl+space brings up the hints, no need for this<br />
4) I dont use underscore though, it is very ugly, not easily readable, usually people who transferred from AS2 use it &#8211; I use proper variable names</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David J McClelland</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-10727</link>
		<dc:creator>David J McClelland</dc:creator>
		<pubDate>Wed, 08 Sep 2010 20:46:24 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-10727</guid>
		<description>I don&#039;t use &quot;this&quot; keyword in as3. I don&#039;t use Flash Builder so the code hinting part is not a bonus. 

I set up my class vars in the class definition where they are completely obvious by where they are located.

static vars must be declared static, no confusion there.

local vars are inside a function and scope is determined by location.

I do use an underscore prefix when I pass in an argument to a function and then assign it to class scope. If I didn&#039;t do that I would use this.sameName = sameName. But within the function I want to make sure I am using the class scoped var, and it is much easier to type _sameName than wonder if I should type &quot;this.&quot; in front of a var or not.

My 2</description>
		<content:encoded><![CDATA[<p>I don&#8217;t use &#8220;this&#8221; keyword in as3. I don&#8217;t use Flash Builder so the code hinting part is not a bonus. </p>
<p>I set up my class vars in the class definition where they are completely obvious by where they are located.</p>
<p>static vars must be declared static, no confusion there.</p>
<p>local vars are inside a function and scope is determined by location.</p>
<p>I do use an underscore prefix when I pass in an argument to a function and then assign it to class scope. If I didn&#8217;t do that I would use this.sameName = sameName. But within the function I want to make sure I am using the class scoped var, and it is much easier to type _sameName than wonder if I should type &#8220;this.&#8221; in front of a var or not.</p>
<p>My 2</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seando</title>
		<link>http://www.daveoncode.com/2009/01/07/we-should-always-use-actionscripts-this-keyword/comment-page-1/#comment-6972</link>
		<dc:creator>Seando</dc:creator>
		<pubDate>Thu, 29 Jul 2010 22:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://daveoncode.wordpress.com/?p=206#comment-6972</guid>
		<description>be aware using the this keyword in inline item renderer&#039;s or in anonymous functions. The this keyword will do the opposite in the above examples. this.myVar will refer to the argument and myVar will refer to the outer scoped class variable.</description>
		<content:encoded><![CDATA[<p>be aware using the this keyword in inline item renderer&#8217;s or in anonymous functions. The this keyword will do the opposite in the above examples. this.myVar will refer to the argument and myVar will refer to the outer scoped class variable.</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-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>
</channel>
</rss>

