<?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: Adding Parameters to addEventListener</title>
	<atom:link href="http://simplistika.com/adding-parameters-to-addeventlistener/feed/" rel="self" type="application/rss+xml" />
	<link>http://simplistika.com/adding-parameters-to-addeventlistener/</link>
	<description>Think Simple</description>
	<lastBuildDate>Wed, 07 Jul 2010 22:23:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dave Bleeker</title>
		<link>http://simplistika.com/adding-parameters-to-addeventlistener/comment-page-1/#comment-618</link>
		<dc:creator>Dave Bleeker</dc:creator>
		<pubDate>Fri, 06 Nov 2009 03:01:34 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=356#comment-618</guid>
		<description>This is indeed one way to solve this, can be specially useful when tweening a filter. 

However, like corfix already mentioned, is that with function closures, there is (as far as I know) no way to remove the listener. This means that it might keep references to objects that will never be garbage collected, resulting in a memory leak, specially when you call a dynamic class more than once in your application. In worst case scenario this can even crash your browser.

Nevertheless, with that in mind, it can be the best solution and save you a lot of time.</description>
		<content:encoded><![CDATA[<p>This is indeed one way to solve this, can be specially useful when tweening a filter. </p>
<p>However, like corfix already mentioned, is that with function closures, there is (as far as I know) no way to remove the listener. This means that it might keep references to objects that will never be garbage collected, resulting in a memory leak, specially when you call a dynamic class more than once in your application. In worst case scenario this can even crash your browser.</p>
<p>Nevertheless, with that in mind, it can be the best solution and save you a lot of time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: corfix</title>
		<link>http://simplistika.com/adding-parameters-to-addeventlistener/comment-page-1/#comment-431</link>
		<dc:creator>corfix</dc:creator>
		<pubDate>Thu, 06 Aug 2009 07:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=356#comment-431</guid>
		<description>While this solves problem of passing parameters to handler functions (which, imo, should be resolved within handler body!) it also rise quite an issue when you actually wants to remove this handler... Since you passed anonymous function there is no reference that could be passed to removeEventHandler method.</description>
		<content:encoded><![CDATA[<p>While this solves problem of passing parameters to handler functions (which, imo, should be resolved within handler body!) it also rise quite an issue when you actually wants to remove this handler&#8230; Since you passed anonymous function there is no reference that could be passed to removeEventHandler method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jared</title>
		<link>http://simplistika.com/adding-parameters-to-addeventlistener/comment-page-1/#comment-429</link>
		<dc:creator>jared</dc:creator>
		<pubDate>Wed, 08 Apr 2009 00:55:49 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=356#comment-429</guid>
		<description>parameters for addEventListener -

&lt;a href=&quot;http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/IEventDispatcher.html#addEventListener()&quot; rel=&quot;nofollow&quot;&gt;http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/IEventDispatcher.html#addEventListener()&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>parameters for addEventListener -</p>
<p><a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/IEventDispatcher.html#addEventListener()" rel="nofollow">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/IEventDispatcher.html#addEventListener()</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gary</title>
		<link>http://simplistika.com/adding-parameters-to-addeventlistener/comment-page-1/#comment-430</link>
		<dc:creator>gary</dc:creator>
		<pubDate>Tue, 07 Apr 2009 22:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=356#comment-430</guid>
		<description>This script works great! I have been looking for a simple solution to do this and all the other posts i found involved creating custom classes or other overly complex approaches.

Thanks for this simple solution.

One question, though - can you tell me what last three values &#039;false, 0, false&#039; represent?</description>
		<content:encoded><![CDATA[<p>This script works great! I have been looking for a simple solution to do this and all the other posts i found involved creating custom classes or other overly complex approaches.</p>
<p>Thanks for this simple solution.</p>
<p>One question, though &#8211; can you tell me what last three values &#8216;false, 0, false&#8217; represent?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Evan M</title>
		<link>http://simplistika.com/adding-parameters-to-addeventlistener/comment-page-1/#comment-428</link>
		<dc:creator>Evan M</dc:creator>
		<pubDate>Fri, 20 Mar 2009 20:51:26 +0000</pubDate>
		<guid isPermaLink="false">http://jared.simplistika.com/?p=356#comment-428</guid>
		<description>Yes! This answered my question perfectly! When I implemented the technique I got all my parameters and arguments back perfectly!
Thanks!</description>
		<content:encoded><![CDATA[<p>Yes! This answered my question perfectly! When I implemented the technique I got all my parameters and arguments back perfectly!<br />
Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
