<?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>DesignFission &#187; garbage collector</title>
	<atom:link href="http://www.designfission.com/blog/tag/garbage-collector/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.designfission.com/blog</link>
	<description>Flash, Web, Javascript and everything else</description>
	<lastBuildDate>Sun, 25 Dec 2011 18:31:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Garbage Collector in AS3</title>
		<link>http://www.designfission.com/blog/2010/01/31/garbage-collector-in-as3/</link>
		<comments>http://www.designfission.com/blog/2010/01/31/garbage-collector-in-as3/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 10:35:39 +0000</pubDate>
		<dc:creator>Edwin</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[garbage collector]]></category>
		<category><![CDATA[gc]]></category>

		<guid isPermaLink="false">http://www.designfission.com/blog/2010/01/31/garbage-collector-in-as3/</guid>
		<description><![CDATA[Being new to AS3, I didn't realise that removing a child from the display list does not kill all it's listeners, sounds, and some other stuff I don't know...]]></description>
			<content:encoded><![CDATA[<p>The Garbage Collector in AS3 is smart, but it&#8217;s driving me crazy.</p>
<p>Being new to AS3, I didn&#8217;t realise that removing a child from the display list does not kill all it&#8217;s listeners, sounds, and some other stuff I don&#8217;t know.</p>
<p>When it affected me, I stopped for a moment and thought why is it built this way. It is true that sometimes, after removing a child from the display list, you do want the listener to stay. </p>
<p>Yet, I don&#8217;t see why they didn&#8217;t create another function that lets user kill all listeners in a particular child before removing it. </p>
<p>Anyway, after being stuck at this problem for a few agonizing hours, I realised all I need to do, is actually create a if statement inside any listener I want to kill as well, that if it&#8217;s parent is already null, i.e. to say it is already removed, then it should kill itself! </p>
<p>A simple solution. Hopefully no new bugs turn up after implementing this as a solution. Keeping my fingers crossed. </p>
<p>If this post helped you in any way, help me in return by clicking on the ad below:<br />
<script type="text/javascript"><!--
google_ad_client = "pub-1241157645351204";
/* 300x250, created 3/27/10 */
google_ad_slot = "0640751317";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.designfission.com/blog/2010/01/31/garbage-collector-in-as3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Content Delivery Network via dfblog.qwertydesign.netdna-cdn.com

Served from: www.designfission.com @ 2012-02-06 14:32:42 -->
