<?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: [AS3] Avoiding NULL Object Reference Error When Loading Module SWF</title>
	<atom:link href="http://www.ghostwire.com/blog/archives/as3-avoiding-null-object-reference-error-when-loading-module-swf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghostwire.com/blog/archives/as3-avoiding-null-object-reference-error-when-loading-module-swf/</link>
	<description>Flash UI Components</description>
	<lastBuildDate>Fri, 02 Jul 2010 11:44:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Rasmus</title>
		<link>http://www.ghostwire.com/blog/archives/as3-avoiding-null-object-reference-error-when-loading-module-swf/comment-page-1/#comment-476</link>
		<dc:creator>Rasmus</dc:creator>
		<pubDate>Thu, 18 Mar 2010 16:05:05 +0000</pubDate>
		<guid isPermaLink="false">http://ghostwire.com/blog/?p=675#comment-476</guid>
		<description>thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you!! This was killing me - I was thinking about a career change!</description>
		<content:encoded><![CDATA[<p>thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you!! This was killing me &#8211; I was thinking about a career change!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murdoch</title>
		<link>http://www.ghostwire.com/blog/archives/as3-avoiding-null-object-reference-error-when-loading-module-swf/comment-page-1/#comment-440</link>
		<dc:creator>Murdoch</dc:creator>
		<pubDate>Mon, 21 Dec 2009 03:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://ghostwire.com/blog/?p=675#comment-440</guid>
		<description>This is exactly what I was looking for. It was doing my head in. Another fix is putting all code on the 2nd frame of the loaded SWF but this approach is much more elegant and correct. My Flash IDE approach is below (all code on first frame of loaded SWF):

this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true )
function init(event:Event):void {
	trace(MovieClip(this.parent.parent));
       // calls to main timeline will now work
}</description>
		<content:encoded><![CDATA[<p>This is exactly what I was looking for. It was doing my head in. Another fix is putting all code on the 2nd frame of the loaded SWF but this approach is much more elegant and correct. My Flash IDE approach is below (all code on first frame of loaded SWF):</p>
<p>this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true )<br />
function init(event:Event):void {<br />
	trace(MovieClip(this.parent.parent));<br />
       // calls to main timeline will now work<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MicL</title>
		<link>http://www.ghostwire.com/blog/archives/as3-avoiding-null-object-reference-error-when-loading-module-swf/comment-page-1/#comment-426</link>
		<dc:creator>MicL</dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://ghostwire.com/blog/?p=675#comment-426</guid>
		<description>Thanks for this post. Cleared things up for me :)</description>
		<content:encoded><![CDATA[<p>Thanks for this post. Cleared things up for me <img src='http://www.ghostwire.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Angelico</title>
		<link>http://www.ghostwire.com/blog/archives/as3-avoiding-null-object-reference-error-when-loading-module-swf/comment-page-1/#comment-410</link>
		<dc:creator>Alex Angelico</dc:creator>
		<pubDate>Tue, 27 Oct 2009 20:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://ghostwire.com/blog/?p=675#comment-410</guid>
		<description>Dear Sunny, THANK YOU VERY MUCH!!!!
I didn&#039;t had a clue how to solve this issue, and your solution is so simple and clear!!!</description>
		<content:encoded><![CDATA[<p>Dear Sunny, THANK YOU VERY MUCH!!!!<br />
I didn&#8217;t had a clue how to solve this issue, and your solution is so simple and clear!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
