<?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: Solution to quiz #1: inner functions and garbage collection</title>
	<atom:link href="http://www.morearty.com/blog/2007/01/10/solution-to-quiz-1-inner-functions-and-garbage-collection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.morearty.com/blog/2007/01/10/solution-to-quiz-1-inner-functions-and-garbage-collection/</link>
	<description>Mike Morearty&#039;s blog</description>
	<lastBuildDate>Tue, 24 Jan 2012 05:31:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: mike</title>
		<link>http://www.morearty.com/blog/2007/01/10/solution-to-quiz-1-inner-functions-and-garbage-collection/comment-page-1/#comment-10529</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Thu, 11 Jan 2007 04:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.morearty.com/blog/2007/01/10/solution-to-quiz-1-inner-functions-and-garbage-collection/#comment-10529</guid>
		<description>&lt;p&gt;maybe you&#039;re right :-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>maybe you're right :-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon Ellis</title>
		<link>http://www.morearty.com/blog/2007/01/10/solution-to-quiz-1-inner-functions-and-garbage-collection/comment-page-1/#comment-10523</link>
		<dc:creator>Brandon Ellis</dc:creator>
		<pubDate>Thu, 11 Jan 2007 03:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.morearty.com/blog/2007/01/10/solution-to-quiz-1-inner-functions-and-garbage-collection/#comment-10523</guid>
		<description>&lt;p&gt;Ok. I knew I was (somewhat) on track. :)
Maybe the next quiz should be a little more concrete in the expected answer so there is less chance of numerous answers that &lt;em&gt;could&lt;/em&gt; be right.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Ok. I knew I was (somewhat) on track. :)
Maybe the next quiz should be a little more concrete in the expected answer so there is less chance of numerous answers that <em>could</em> be right.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: JesterXL</title>
		<link>http://www.morearty.com/blog/2007/01/10/solution-to-quiz-1-inner-functions-and-garbage-collection/comment-page-1/#comment-10499</link>
		<dc:creator>JesterXL</dc:creator>
		<pubDate>Wed, 10 Jan 2007 22:32:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.morearty.com/blog/2007/01/10/solution-to-quiz-1-inner-functions-and-garbage-collection/#comment-10499</guid>
		<description>&lt;p&gt;You don&#039;t need a timeline, or a MovieClip to get an enter frame event.  It&#039;s very valuable to have these with regards to invalidation.  Since things only redraw once per frame, you can use enter frame in tandem with other events to ensure you&#039;re only actually updating visual components once per redraw.&lt;/p&gt;

&lt;p&gt;package {
    import flash.display.Sprite;
    import flash.events.Event;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;public class TestEnterFrame extends Sprite
{
    public function TestEnterFrame()
    {
        addEventListener(Event.ENTER_FRAME, onEnterFrame);
    }

    private function onEnterFrame(event:Event):void
    {
        trace(&quot;sup&quot;);
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;}&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>You don't need a timeline, or a MovieClip to get an enter frame event.  It's very valuable to have these with regards to invalidation.  Since things only redraw once per frame, you can use enter frame in tandem with other events to ensure you're only actually updating visual components once per redraw.</p>

<p>package {
    import flash.display.Sprite;
    import flash.events.Event;</p>

<pre><code>public class TestEnterFrame extends Sprite
{
    public function TestEnterFrame()
    {
        addEventListener(Event.ENTER_FRAME, onEnterFrame);
    }

    private function onEnterFrame(event:Event):void
    {
        trace(&amp;quot;sup&amp;quot;);
    }
}
</code></pre>

<p>}</p>]]></content:encoded>
	</item>
</channel>
</rss>

