<?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: This isn&#8217;t right&#8230; MovieClip nested inside Button throwing null object reference error in Flash CS4</title>
	<atom:link href="http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/</link>
	<description>wrangling the Internet's wildest</description>
	<lastBuildDate>Fri, 16 Dec 2011 14:20:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Ans</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-27595</link>
		<dc:creator>Ans</dc:creator>
		<pubDate>Tue, 25 Oct 2011 11:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-27595</guid>
		<description>Donutman, heh, glad I could help :D</description>
		<content:encoded><![CDATA[<p>Donutman, heh, glad I could help <img src='http://blog.anselmbradford.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donutman</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-27594</link>
		<dc:creator>Donutman</dc:creator>
		<pubDate>Tue, 25 Oct 2011 11:04:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-27594</guid>
		<description>I JUST LOVE YOU!!! you saved me from suicide!!!</description>
		<content:encoded><![CDATA[<p>I JUST LOVE YOU!!! you saved me from suicide!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KaileneDanae</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-27374</link>
		<dc:creator>KaileneDanae</dc:creator>
		<pubDate>Mon, 17 Oct 2011 19:17:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-27374</guid>
		<description>THANK YOU SO MUCH.  I&#039;ve been battling this for days- I wanted different movie clips to play on up, down, and over... but I kept getting that stupid error.  I ended up putting the action script on the next frame over, and it worked like a charm.  You are my HERO!</description>
		<content:encoded><![CDATA[<p>THANK YOU SO MUCH.  I&#8217;ve been battling this for days- I wanted different movie clips to play on up, down, and over&#8230; but I kept getting that stupid error.  I ended up putting the action script on the next frame over, and it worked like a charm.  You are my HERO!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ans</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-23795</link>
		<dc:creator>Ans</dc:creator>
		<pubDate>Sat, 16 Jul 2011 21:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-23795</guid>
		<description>Hi Jon, thanks for the tip!</description>
		<content:encoded><![CDATA[<p>Hi Jon, thanks for the tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon L</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-23793</link>
		<dc:creator>Jon L</dc:creator>
		<pubDate>Sat, 16 Jul 2011 20:47:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-23793</guid>
		<description>Hey!
I have been developing flash games for a few years and I have run into this error a number of times.  In fact, this error CAN HAPPEN TO MOVIECLIPS INSIDE MOVIECLIPS!  While usually this is not the case, nesting movie clips is always a risk, especially if you are nesting more than one level, as in you have a parent movieclip with a child that also has a child and you are moving around the top parent&#039;s frames.  The problem is that the code tries to reference an object that has not loaded, so the quick and easy solution is to export your movieclips by making them AS classes, even if you don&#039;t have an actionscript class written for them.  I do this for all my large-size movieclips and it solves the problem.  For example, when I make a level movieclip with different frames for each stage of my game, and and inside each stage is a number of objects that have children themselves, I always export the parent level MC and it fixes the issue every time! 
Hope that helps,
Jon</description>
		<content:encoded><![CDATA[<p>Hey!<br />
I have been developing flash games for a few years and I have run into this error a number of times.  In fact, this error CAN HAPPEN TO MOVIECLIPS INSIDE MOVIECLIPS!  While usually this is not the case, nesting movie clips is always a risk, especially if you are nesting more than one level, as in you have a parent movieclip with a child that also has a child and you are moving around the top parent&#8217;s frames.  The problem is that the code tries to reference an object that has not loaded, so the quick and easy solution is to export your movieclips by making them AS classes, even if you don&#8217;t have an actionscript class written for them.  I do this for all my large-size movieclips and it solves the problem.  For example, when I make a level movieclip with different frames for each stage of my game, and and inside each stage is a number of objects that have children themselves, I always export the parent level MC and it fixes the issue every time!<br />
Hope that helps,<br />
Jon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Konu</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-22428</link>
		<dc:creator>Konu</dc:creator>
		<pubDate>Fri, 10 Jun 2011 09:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-22428</guid>
		<description>Dude,

thnx found the freaking problem.. 

Bless</description>
		<content:encoded><![CDATA[<p>Dude,</p>
<p>thnx found the freaking problem.. </p>
<p>Bless</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terminator</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-21071</link>
		<dc:creator>Terminator</dc:creator>
		<pubDate>Sat, 30 Apr 2011 09:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-21071</guid>
		<description>It think my self a genius to solve every error, But after reading this I just think that i am nothing. Thank you for solving such a complex problem. Complex because i already spend 32 hour or more in finding and solving this problem.
Once again Thanks a lot</description>
		<content:encoded><![CDATA[<p>It think my self a genius to solve every error, But after reading this I just think that i am nothing. Thank you for solving such a complex problem. Complex because i already spend 32 hour or more in finding and solving this problem.<br />
Once again Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-20500</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 12 Apr 2011 16:58:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-20500</guid>
		<description>WOW! Thank you so much for this!! I was starting to start pulling my hair trying to figure this one out. It appears Flash does not render the instance before the instance is referenced by actionscript and that&#039;s where all problems arise form. ENTER_FRAME event listener did it for me. :)</description>
		<content:encoded><![CDATA[<p>WOW! Thank you so much for this!! I was starting to start pulling my hair trying to figure this one out. It appears Flash does not render the instance before the instance is referenced by actionscript and that&#8217;s where all problems arise form. ENTER_FRAME event listener did it for me. <img src='http://blog.anselmbradford.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geoff</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-20124</link>
		<dc:creator>Geoff</dc:creator>
		<pubDate>Sat, 02 Apr 2011 15:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-20124</guid>
		<description>Thank you for your help!  I&#039;ve encountered this problem twice and found that only your site offered the help I needed!!

You saved me tons of time!</description>
		<content:encoded><![CDATA[<p>Thank you for your help!  I&#8217;ve encountered this problem twice and found that only your site offered the help I needed!!</p>
<p>You saved me tons of time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: José Pinto</title>
		<link>http://blog.anselmbradford.com/2009/09/10/this-isnt-right-movieclip-nested-inside-button-throwing-null-object-reference-error-in-flash-cs4/comment-page-1/#comment-20018</link>
		<dc:creator>José Pinto</dc:creator>
		<pubDate>Tue, 29 Mar 2011 18:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.anselmbradford.com/?p=933#comment-20018</guid>
		<description>Thanks a lot!!!!
I&#039;ve been having this problem in a project for a while.
I used your suggestion myButton = SimpleButton(getChildByName(myButton)); and it&#039;s ok now!
Thank god!
I lost hours!</description>
		<content:encoded><![CDATA[<p>Thanks a lot!!!!<br />
I&#8217;ve been having this problem in a project for a while.<br />
I used your suggestion myButton = SimpleButton(getChildByName(myButton)); and it&#8217;s ok now!<br />
Thank god!<br />
I lost hours!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

