<?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>transmote speaks... &#187; Keyboard</title>
	<atom:link href="http://words.transmote.com/wp/tag/keyboard/feed/" rel="self" type="application/rss+xml" />
	<link>http://words.transmote.com/wp</link>
	<description>design + art + code</description>
	<lastBuildDate>Tue, 28 Jun 2011 23:37:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>object references in event handlers prevent GC</title>
		<link>http://words.transmote.com/wp/20090321/object-references-in-event-handlers-prevent-gc/</link>
		<comments>http://words.transmote.com/wp/20090321/object-references-in-event-handlers-prevent-gc/#comments</comments>
		<pubDate>Sat, 21 Mar 2009 22:03:49 +0000</pubDate>
		<dc:creator>ericsoco</dc:creator>
				<category><![CDATA[to do]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[Capabilities]]></category>
		<category><![CDATA[event handler]]></category>
		<category><![CDATA[flash player]]></category>
		<category><![CDATA[garbage collection]]></category>
		<category><![CDATA[Keyboard]]></category>
		<category><![CDATA[memory]]></category>

		<guid isPermaLink="false">http://words.transmote.com/wp/?p=51</guid>
		<description><![CDATA[a bug in flash player 9 i came across today while trying to get a swf to unload completely: https://bugs.adobe.com/jira/browse/FP-1770 if you have a reference to Keyboard or Capabilities (or, probably, a number of other native Classes as well) in an event handler, it will loiter as a pair of Class and Object references when [...]]]></description>
			<content:encoded><![CDATA[<p>a bug in flash player 9 i came across today while trying to get a swf to unload completely:</p>
<p><a href="https://bugs.adobe.com/jira/browse/FP-1770">https://bugs.adobe.com/jira/browse/FP-1770</a></p>
<p>if you have a reference to Keyboard or Capabilities (or, probably, a number of other native Classes as well) in an event handler, it will loiter as a pair of Class and Object references when the enclosing swf is unloaded via Loader.unload().<br />
<span id="more-51"></span><br />
for example:<br />
<code>private function onKeyDown (evt:KeyboardEvent) :void {<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (evt.keyCode == Keyboard.SPACE) { doStuff(); }<br />
}</code></p>
<p>must be replaced with:<br />
<code>private function onKeyDown (evt:KeyboardEvent) :void {<br />
&nbsp;&nbsp;&nbsp;&nbsp;if (evt.keyCode == 32) { doStuff(); }<br />
}</code></p>
<p>what a pain.</p>
]]></content:encoded>
			<wfw:commentRss>http://words.transmote.com/wp/20090321/object-references-in-event-handlers-prevent-gc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

