<?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: Nested MovieClip subclass gotcha in ActionScript 2</title>
	<atom:link href="http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/</link>
	<description>Notes on Flash and Web development</description>
	<pubDate>Wed, 07 Jan 2009 16:39:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Bart</title>
		<link>http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/comment-page-1/#comment-26633</link>
		<dc:creator>Bart</dc:creator>
		<pubDate>Mon, 01 Sep 2008 15:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/#comment-26633</guid>
		<description>Hi, You can indeed use attachMovie or you can wait for the movieClip.onLoad.

mc2.onLoad = Delegate.create(this, onInitClass);

Now you can call your methods of MovieClass2.

When you call mc1.mc2.customMethod() directly from the stage you don't have to wait for the onload.</description>
		<content:encoded><![CDATA[<p>Hi, You can indeed use attachMovie or you can wait for the movieClip.onLoad.</p>
<p>mc2.onLoad = Delegate.create(this, onInitClass);</p>
<p>Now you can call your methods of MovieClass2.</p>
<p>When you call mc1.mc2.customMethod() directly from the stage you don&#8217;t have to wait for the onload.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pixelrevision</title>
		<link>http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/comment-page-1/#comment-24092</link>
		<dc:creator>pixelrevision</dc:creator>
		<pubDate>Wed, 23 Jul 2008 23:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/#comment-24092</guid>
		<description>Using "childObject.onLoad" in the parent constructor seems to work well for me on this.  I then make a function that deals with all the things I want to tell the child to do.  The only issue I have had with this is that the child renders one frame as a movie clip before all its methods are called, so I often need to turn off then on the alpha.</description>
		<content:encoded><![CDATA[<p>Using &#8220;childObject.onLoad&#8221; in the parent constructor seems to work well for me on this.  I then make a function that deals with all the things I want to tell the child to do.  The only issue I have had with this is that the child renders one frame as a movie clip before all its methods are called, so I often need to turn off then on the alpha.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/comment-page-1/#comment-22895</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Tue, 15 Jul 2008 18:56:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/#comment-22895</guid>
		<description>Two more possible solutions:

- Have the child MC "report" to its parent in its constructor that it's ready. This assumes that the parent will have a pre-determined function name (something like childReady()).

- Use attachMovie() to create the child MC dynamically; in this situation, the child class seems to be ready right away.

I really have to get on the AS3 boat, because I cry a little inside every time I have to make my classes interdependent to avoid a Flash quirk.</description>
		<content:encoded><![CDATA[<p>Two more possible solutions:</p>
<p>- Have the child MC &#8220;report&#8221; to its parent in its constructor that it&#8217;s ready. This assumes that the parent will have a pre-determined function name (something like childReady()).</p>
<p>- Use attachMovie() to create the child MC dynamically; in this situation, the child class seems to be ready right away.</p>
<p>I really have to get on the AS3 boat, because I cry a little inside every time I have to make my classes interdependent to avoid a Flash quirk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bunnyhero</title>
		<link>http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/comment-page-1/#comment-20140</link>
		<dc:creator>bunnyhero</dc:creator>
		<pubDate>Sat, 21 Jun 2008 18:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/#comment-20140</guid>
		<description>I ended up changing my code so that I didn't need to call methods on the child clip. That probably doesn't help you much :( Colin Moock uses setInterval() to continually check the child clip until the method appears, but I find that inelegant.</description>
		<content:encoded><![CDATA[<p>I ended up changing my code so that I didn&#8217;t need to call methods on the child clip. That probably doesn&#8217;t help you much <img src='http://www.bunnyhero.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> Colin Moock uses setInterval() to continually check the child clip until the method appears, but I find that inelegant.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/comment-page-1/#comment-19289</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sat, 14 Jun 2008 11:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.bunnyhero.org/2007/05/25/nested-movieclip-subclass-gotcha-in-actionscript-2/#comment-19289</guid>
		<description>Argh!!

Thanks for perfectly outlining the problem i've been having.

So what's the solution?</description>
		<content:encoded><![CDATA[<p>Argh!!</p>
<p>Thanks for perfectly outlining the problem i&#8217;ve been having.</p>
<p>So what&#8217;s the solution?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
