<?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: Combine buttonMode = true and a mouse click to leak memory</title>
	<atom:link href="http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/</link>
	<description>Josh Tynjala explores Flash, Flex, and ActionScript.</description>
	<lastBuildDate>Sat, 31 Jul 2010 02:55:11 -0400</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Rob</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-61910</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Mon, 30 Nov 2009 22:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-61910</guid>
		<description>Hey Josh,

Something about this post made me think it was related to &lt;a href=&quot;http://rmd.com.au/archives/stage-loses-keyboard-focus-when-simplebutton-is-removed-on-click&quot; rel=&quot;nofollow&quot;&gt;a similar bug I found&lt;/a&gt;.

In essense, stage.focus retains a reference to the button when it is removed. Just added trace(stage.focus); to the end of each click handler in your example, and it would appear that this is one of the the differences between buttonMode=true/false.

Unfortunately I don&#039;t have Flash Pro at work, so I won&#039;t be able to test this in the profiler until I get home tonight.</description>
		<content:encoded><![CDATA[<p>Hey Josh,</p>
<p>Something about this post made me think it was related to <a href="http://rmd.com.au/archives/stage-loses-keyboard-focus-when-simplebutton-is-removed-on-click" rel="nofollow">a similar bug I found</a>.</p>
<p>In essense, stage.focus retains a reference to the button when it is removed. Just added trace(stage.focus); to the end of each click handler in your example, and it would appear that this is one of the the differences between buttonMode=true/false.</p>
<p>Unfortunately I don&#8217;t have Flash Pro at work, so I won&#8217;t be able to test this in the profiler until I get home tonight.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vizio 360Âº &#187; buttonMode=true prevent swf to unload</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-61907</link>
		<dc:creator>vizio 360Âº &#187; buttonMode=true prevent swf to unload</dc:creator>
		<pubDate>Mon, 30 Nov 2009 11:57:52 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-61907</guid>
		<description>[...] Combine buttonMode = true and a mouse click to leak memory [...]</description>
		<content:encoded><![CDATA[<p>[...] Combine buttonMode = true and a mouse click to leak memory [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simone</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-61865</link>
		<dc:creator>Simone</dc:creator>
		<pubDate>Mon, 16 Nov 2009 15:57:27 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-61865</guid>
		<description>Josh,
you&#039;ve just saved my day!!!!
I spent the last few days battling against this bug, I couldn&#039;t understand what I was doing wrong , I cleared all the references etc. but nothing the external SWF would not unload!!! 
Then after reading your post and setting buttonMode = false, everything worked fine.

I commented on your bug report on JIRA and so did @alecmce and I&#039;m surprised they set it as &quot;Not a bug&quot;..... we need some people at #Adobe that listen to us developers!!!!!!! :)</description>
		<content:encoded><![CDATA[<p>Josh,<br />
you&#8217;ve just saved my day!!!!<br />
I spent the last few days battling against this bug, I couldn&#8217;t understand what I was doing wrong , I cleared all the references etc. but nothing the external SWF would not unload!!!<br />
Then after reading your post and setting buttonMode = false, everything worked fine.</p>
<p>I commented on your bug report on JIRA and so did @alecmce and I&#8217;m surprised they set it as &#8220;Not a bug&#8221;&#8230;.. we need some people at #Adobe that listen to us developers!!!!!!! <img src='http://joshblog.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-61046</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Sun, 14 Jun 2009 10:10:30 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-61046</guid>
		<description>Thomas, yes, it calls the garbage collector. Documentation: &lt;a href=&quot;http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/system/System.html#gc()&quot; rel=&quot;nofollow&quot;&gt;&lt;code&gt;System.gc()&lt;/code&gt;&lt;/a&gt;. It&#039;s meant to be used with the debugger version of Flash Player. I don&#039;t think it has any effect in the regular Flash Player that non-developers install.</description>
		<content:encoded><![CDATA[<p>Thomas, yes, it calls the garbage collector. Documentation: <a href="http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/system/System.html#gc()" rel="nofollow"><code>System.gc()</code></a>. It&#8217;s meant to be used with the debugger version of Flash Player. I don&#8217;t think it has any effect in the regular Flash Player that non-developers install.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-61045</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sun, 14 Jun 2009 09:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-61045</guid>
		<description>I never seen this line before:

System.gc();

Are you calling the Garbage Collector?</description>
		<content:encoded><![CDATA[<p>I never seen this line before:</p>
<p>System.gc();</p>
<p>Are you calling the Garbage Collector?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-60937</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 07 May 2009 17:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-60937</guid>
		<description>Funny I forgot about it subclassing the Sprite class.  Great article though.</description>
		<content:encoded><![CDATA[<p>Funny I forgot about it subclassing the Sprite class.  Great article though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-60935</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Thu, 07 May 2009 16:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-60935</guid>
		<description>Ryan, I didn&#039;t test MovieClip, but since it&#039;s a subclass of Sprite, I&#039;d expect it to behave exactly the same.</description>
		<content:encoded><![CDATA[<p>Ryan, I didn&#8217;t test MovieClip, but since it&#8217;s a subclass of Sprite, I&#8217;d expect it to behave exactly the same.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-60933</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Thu, 07 May 2009 13:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-60933</guid>
		<description>Hey --  Does this problem happen with movie clips as well?</description>
		<content:encoded><![CDATA[<p>Hey &#8212;  Does this problem happen with movie clips as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh Tynjala</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-60924</link>
		<dc:creator>Josh Tynjala</dc:creator>
		<pubDate>Sat, 02 May 2009 17:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-60924</guid>
		<description>dim, I tried that. If a button has been clicked that had &lt;code&gt;buttonMode&lt;/code&gt; set to &lt;code&gt;true&lt;/code&gt;, it will not help to set it to &lt;code&gt;false&lt;/code&gt; later.</description>
		<content:encoded><![CDATA[<p>dim, I tried that. If a button has been clicked that had <code>buttonMode</code> set to <code>true</code>, it will not help to set it to <code>false</code> later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dim</title>
		<link>http://joshblog.net/2009/04/30/combine-buttonmode-true-and-a-mouse-click-to-leak-memory/comment-page-1/#comment-60923</link>
		<dc:creator>dim</dc:creator>
		<pubDate>Sat, 02 May 2009 14:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://joshblog.net/?p=599#comment-60923</guid>
		<description>what happens when set buttonMode back to false before clean loaded SWFs ?</description>
		<content:encoded><![CDATA[<p>what happens when set buttonMode back to false before clean loaded SWFs ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
