<?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>webdevils.com &#187; currentTarget</title>
	<atom:link href="http://www.webdevils.com/tag/currenttarget/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevils.com</link>
	<description>Web New Media notes and ramblings</description>
	<lastBuildDate>Tue, 31 Jan 2012 04:58:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>target vs currentTraget</title>
		<link>http://www.webdevils.com/2009/12/12/target-vs-currenttraget/</link>
		<comments>http://www.webdevils.com/2009/12/12/target-vs-currenttraget/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 01:50:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[currentTarget]]></category>
		<category><![CDATA[target]]></category>

		<guid isPermaLink="false">http://www.webdevils.com/?p=275</guid>
		<description><![CDATA[When working with MouseEvents the event object provides two properties that refer to object that originated the event: target and currentTarget. The right choice between these two is almost always currentTarget. The problem with target is that often it is not the object that you think it is. The target property is the object that [...]]]></description>
			<content:encoded><![CDATA[<p>When working with MouseEvents the event object provides two properties that refer to object that originated the event: <strong>target</strong> and <strong>currentTarget</strong>. The right choice between these two is almost always <strong>currentTarget</strong>.</p>
<p>The problem with <strong>target</strong> is that often it is not the object that you think it is. The <strong>target</strong> property is the object that was actually clicked. This can any object nested within the MovieClip that was clicked, and often not the MovieClip itself, which is what you are most often expecting.</p>
<p>The <strong>currentTarget</strong> property on the other hand is the object that registered the event. Which is almost always what you are expecting.</p>
<p>So for general use it should always be <strong>currentTarget</strong>. The <strong>target</strong> property does provide an interesting function but in most cases it&#8217;s not what you think it is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevils.com/2009/12/12/target-vs-currenttraget/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

