<?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"
	>
<channel>
	<title>Comments on: MovieClip.unloadMovie bug in Flash Player 8</title>
	<atom:link href="http://blog.madebyderek.com/archives/2005/10/04/movieclipunloadmovie_bug_in_flash_player_8/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.madebyderek.com/archives/2005/10/04/movieclipunloadmovie_bug_in_flash_player_8/</link>
	<description>Flash, SWF Studio, and the world around me</description>
	<pubDate>Sun,  5 Sep 2010 01:20:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Stéphane</title>
		<link>http://blog.madebyderek.com/archives/2005/10/04/movieclipunloadmovie_bug_in_flash_player_8/#comment-7858</link>
		<dc:creator>Stéphane</dc:creator>
		<pubDate>Wed, 11 Oct 2006 02:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://tracethis.com/?p=25#comment-7858</guid>
		<description>Please help me, i've tried both solution and apparently i didn't do it right because none of them work.... somebody here is kind enough to accept FLA from me ?</description>
		<content:encoded><![CDATA[<p>Please help me, i&#8217;ve tried both solution and apparently i didn&#8217;t do it right because none of them work&#8230;. somebody here is kind enough to accept FLA from me ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cpbrooks</title>
		<link>http://blog.madebyderek.com/archives/2005/10/04/movieclipunloadmovie_bug_in_flash_player_8/#comment-7335</link>
		<dc:creator>cpbrooks</dc:creator>
		<pubDate>Wed, 16 Aug 2006 20:37:57 +0000</pubDate>
		<guid isPermaLink="false">http://tracethis.com/?p=25#comment-7335</guid>
		<description>I found this page looking for a fix of this problem (thank you very much for mentioning it), and tried implementing the tonypa fix which, of course, works.  But I ran into hassles trying to fix all my references to the external swf holder (the mc1).  So instead I added an extra frame to the timeline with no holder clip, and a put a prevFrame action on it.  Then when I want to unload the clip, I just send the timeline to the blank frame. Just another down and dirty fix.</description>
		<content:encoded><![CDATA[<p>I found this page looking for a fix of this problem (thank you very much for mentioning it), and tried implementing the tonypa fix which, of course, works.  But I ran into hassles trying to fix all my references to the external swf holder (the mc1).  So instead I added an extra frame to the timeline with no holder clip, and a put a prevFrame action on it.  Then when I want to unload the clip, I just send the timeline to the blank frame. Just another down and dirty fix.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Vadneau</title>
		<link>http://blog.madebyderek.com/archives/2005/10/04/movieclipunloadmovie_bug_in_flash_player_8/#comment-35</link>
		<dc:creator>Derek Vadneau</dc:creator>
		<pubDate>Wed, 05 Oct 2005 21:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://tracethis.com/?p=25#comment-35</guid>
		<description>@ Patrick and Mike:
Ugh, I know.  System.security.allowDomain should allow you to kill security for that domain/movieclip.  However, it only enables instance-level access.  You can't access each others' _global, for instance (punn totally intended ;) )

Setting allowDomain before a loadMovie should mean the loaded movie can access everything just like it was loaded from the same domain.  I can see this being a problem if Flash needs to know if the loading movie accepts the permissions as well (by setting allowDomain), but if there's a crossdomain.xml file, then, as I said, they should be treated as though they were loaded from the same domain.  Anything less is false security anyhow.

@ tonypa:
That's pretty nifty as a workaround.  I appreciate the assistance - luckily I wasn't on a deadline.  However, that's not the way the Flash player *should* behave.  It is a bug that can be worked around, but it's still a bug that should be fixed.

@ All:
I personally think a lot of this security is unnecessary, and puts security in the wrong place.  If I put a file on the web I should expect that people can access it.  If I don't want people to access my file I can choose to not put it in the public domain or use server-side security measures (which are much more potent anyhow).

What good is allowing me to download a graphic from another web site in Flash, but then not allowing me to unload it or get properties of the movieclip containing the graphic?  - Here I'm speaking of the security sandbox, where a local SWF can still download a JPG from a server, where it couldn't do that with a SWF or XML file.

Anyhow, this is turning into a rant worthy of another post, so I'll just say, thanks to everyone that read/commented.  And again, my appologies for not releasing the comments sooner.  I'll make sure to check my admin section regularly.  Anyone who did comment won't need to go through that process again.

Thanks.</description>
		<content:encoded><![CDATA[<p>@ Patrick and Mike:<br />
Ugh, I know.  System.security.allowDomain should allow you to kill security for that domain/movieclip.  However, it only enables instance-level access.  You can&#8217;t access each others&#8217; _global, for instance (punn totally intended <img src='http://blog.madebyderek.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>Setting allowDomain before a loadMovie should mean the loaded movie can access everything just like it was loaded from the same domain.  I can see this being a problem if Flash needs to know if the loading movie accepts the permissions as well (by setting allowDomain), but if there&#8217;s a crossdomain.xml file, then, as I said, they should be treated as though they were loaded from the same domain.  Anything less is false security anyhow.</p>
<p>@ tonypa:<br />
That&#8217;s pretty nifty as a workaround.  I appreciate the assistance - luckily I wasn&#8217;t on a deadline.  However, that&#8217;s not the way the Flash player *should* behave.  It is a bug that can be worked around, but it&#8217;s still a bug that should be fixed.</p>
<p>@ All:<br />
I personally think a lot of this security is unnecessary, and puts security in the wrong place.  If I put a file on the web I should expect that people can access it.  If I don&#8217;t want people to access my file I can choose to not put it in the public domain or use server-side security measures (which are much more potent anyhow).</p>
<p>What good is allowing me to download a graphic from another web site in Flash, but then not allowing me to unload it or get properties of the movieclip containing the graphic?  - Here I&#8217;m speaking of the security sandbox, where a local SWF can still download a JPG from a server, where it couldn&#8217;t do that with a SWF or XML file.</p>
<p>Anyhow, this is turning into a rant worthy of another post, so I&#8217;ll just say, thanks to everyone that read/commented.  And again, my appologies for not releasing the comments sooner.  I&#8217;ll make sure to check my admin section regularly.  Anyone who did comment won&#8217;t need to go through that process again.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Vadneau</title>
		<link>http://blog.madebyderek.com/archives/2005/10/04/movieclipunloadmovie_bug_in_flash_player_8/#comment-34</link>
		<dc:creator>Derek Vadneau</dc:creator>
		<pubDate>Wed, 05 Oct 2005 15:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://tracethis.com/?p=25#comment-34</guid>
		<description>UPDATE:  I was able to remove the movieclip by using createEmptyMovieClip with the same depth.

Of course if you're building a movie that uses automation then not being able to get the depth is rather impeding.


&lt;b&gt;[EDIT]&lt;/b&gt; - F#$%ing WordPress!  Sorry everyone for missing the comments.  Comments were awaiting moderation and I never got the notifications ... flippin', frickin', arg!</description>
		<content:encoded><![CDATA[<p>UPDATE:  I was able to remove the movieclip by using createEmptyMovieClip with the same depth.</p>
<p>Of course if you&#8217;re building a movie that uses automation then not being able to get the depth is rather impeding.</p>
<p><b>[EDIT]</b> - F#$%ing WordPress!  Sorry everyone for missing the comments.  Comments were awaiting moderation and I never got the notifications &#8230; flippin&#8217;, frickin&#8217;, arg!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike J</title>
		<link>http://blog.madebyderek.com/archives/2005/10/04/movieclipunloadmovie_bug_in_flash_player_8/#comment-33</link>
		<dc:creator>Mike J</dc:creator>
		<pubDate>Wed, 05 Oct 2005 12:56:54 +0000</pubDate>
		<guid isPermaLink="false">http://tracethis.com/?p=25#comment-33</guid>
		<description>Heh, we ran across some of these things being cut off in FP7 too, for instance, not being able to get myloadedmovie._parent! Of course the goofy thing in FP7 was we were able to get around it by just getting the path of the loaded clip (it will spit that out) and parsing the MC path to get the parent.</description>
		<content:encoded><![CDATA[<p>Heh, we ran across some of these things being cut off in FP7 too, for instance, not being able to get myloadedmovie._parent! Of course the goofy thing in FP7 was we were able to get around it by just getting the path of the loaded clip (it will spit that out) and parsing the MC path to get the parent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tonypa</title>
		<link>http://blog.madebyderek.com/archives/2005/10/04/movieclipunloadmovie_bug_in_flash_player_8/#comment-32</link>
		<dc:creator>tonypa</dc:creator>
		<pubDate>Wed, 05 Oct 2005 08:52:09 +0000</pubDate>
		<guid isPermaLink="false">http://tracethis.com/?p=25#comment-32</guid>
		<description>Create mc1. Create mc2 inside mc1. Load movie into mc2. You can now remove mc1 (and loaded movie) with simple:
mc1.removeMovieClip ();</description>
		<content:encoded><![CDATA[<p>Create mc1. Create mc2 inside mc1. Load movie into mc2. You can now remove mc1 (and loaded movie) with simple:<br />
mc1.removeMovieClip ();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Mineault</title>
		<link>http://blog.madebyderek.com/archives/2005/10/04/movieclipunloadmovie_bug_in_flash_player_8/#comment-30</link>
		<dc:creator>Patrick Mineault</dc:creator>
		<pubDate>Wed, 05 Oct 2005 00:15:14 +0000</pubDate>
		<guid isPermaLink="false">http://tracethis.com/?p=25#comment-30</guid>
		<description>Even attempting to use allowDomain will yield unsatisfactory results. I currently proxy the remote files using PHP, it's 4 lines of code and stops me from banging my head against the wall... repeatedly. For example:

</description>
		<content:encoded><![CDATA[<p>Even attempting to use allowDomain will yield unsatisfactory results. I currently proxy the remote files using PHP, it&#8217;s 4 lines of code and stops me from banging my head against the wall&#8230; repeatedly. For example:</p>
]]></content:encoded>
	</item>
</channel>
</rss>
