<?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: removeMovieClip vs. destroyObject	</title>
	<atom:link href="https://jessewarden.com/2004/06/removemovieclip-vs-destroyobject.html/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com/2004/06/removemovieclip-vs-destroyobject.html</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Tue, 29 Jun 2004 07:33:54 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2004/06/removemovieclip-vs-destroyobject.html/comment-page-1#comment-1815</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Tue, 29 Jun 2004 07:33:54 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=556#comment-1815</guid>

					<description><![CDATA[unloadMovie will trigger an onUnload, and even remove all of the movie clip&#039;s contents... but the movie clip shell is still there.  removeMovieClip kills the container shell as well, obliterating the movie clip entirely... but who knows if it gets waxed from RAM...


createEmptyMovieClip(&quot;test_mc&quot;, 0);
test_mc.onUnload = function(o)
{
	trace(&quot;onUnload&quot;);
};
test_mc.onEnterFrame = function()
{
	trace(&quot;frame later, I&#039;m still alive: &quot; + this);
};
test_mc.unloadMovie();
trace(&quot;still there?: &quot; + test_mc);
]]></description>
			<content:encoded><![CDATA[<p>unloadMovie will trigger an onUnload, and even remove all of the movie clip&#8217;s contents&#8230; but the movie clip shell is still there.  removeMovieClip kills the container shell as well, obliterating the movie clip entirely&#8230; but who knows if it gets waxed from RAM&#8230;</p>
<p>createEmptyMovieClip(&#8220;test_mc&#8221;, 0);<br />
test_mc.onUnload = function(o)<br />
{<br />
	trace(&#8220;onUnload&#8221;);<br />
};<br />
test_mc.onEnterFrame = function()<br />
{<br />
	trace(&#8220;frame later, I&#8217;m still alive: &#8221; + this);<br />
};<br />
test_mc.unloadMovie();<br />
trace(&#8220;still there?: &#8221; + test_mc);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: sunny hong		</title>
		<link>https://jessewarden.com/2004/06/removemovieclip-vs-destroyobject.html/comment-page-1#comment-1814</link>

		<dc:creator><![CDATA[sunny hong]]></dc:creator>
		<pubDate>Tue, 29 Jun 2004 07:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=556#comment-1814</guid>

					<description><![CDATA[actually, how about just use unloadMovie? like
someMC.unloadMovie()]]></description>
			<content:encoded><![CDATA[<p>actually, how about just use unloadMovie? like<br />
someMC.unloadMovie()</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: JesterXL		</title>
		<link>https://jessewarden.com/2004/06/removemovieclip-vs-destroyobject.html/comment-page-1#comment-1813</link>

		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Mon, 28 Jun 2004 20:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=556#comment-1813</guid>

					<description><![CDATA[removeMovieClip won&#039;t work because it only works on clips in positive depths.  Symbols dropped on the stage are automatically put in negative depths when compiled, thus, removeMovieClip won&#039;t work on them... unless you first swap them to a postiive depth, then call it.

destroyObject does this for you, and safely.

If you don&#039;t use the framework, then correct, it won&#039;t work at all.

delete only delete&#039;s a variable from memory (supposedly), and returns true or false.  However, since movie clips are physical objects, delete could delete the reference, but not the actual movie clip, so no delete won&#039;t work.]]></description>
			<content:encoded><![CDATA[<p>removeMovieClip won&#8217;t work because it only works on clips in positive depths.  Symbols dropped on the stage are automatically put in negative depths when compiled, thus, removeMovieClip won&#8217;t work on them&#8230; unless you first swap them to a postiive depth, then call it.</p>
<p>destroyObject does this for you, and safely.</p>
<p>If you don&#8217;t use the framework, then correct, it won&#8217;t work at all.</p>
<p>delete only delete&#8217;s a variable from memory (supposedly), and returns true or false.  However, since movie clips are physical objects, delete could delete the reference, but not the actual movie clip, so no delete won&#8217;t work.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: leland		</title>
		<link>https://jessewarden.com/2004/06/removemovieclip-vs-destroyobject.html/comment-page-1#comment-1812</link>

		<dc:creator><![CDATA[leland]]></dc:creator>
		<pubDate>Mon, 28 Jun 2004 18:11:35 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=556#comment-1812</guid>

					<description><![CDATA[i didn&#039;t even think removeMovieClip would work on a clip placed by hand on the timeline. it&#039;s only suppose to work on clips placed with duplicateMovieClip or attachMovie.

if destroyOjbect has to have the uiobject code to work, then i could see it not being very useful in projects that don&#039;t use the uiobjects code.

also, could you use delete instead?]]></description>
			<content:encoded><![CDATA[<p>i didn&#8217;t even think removeMovieClip would work on a clip placed by hand on the timeline. it&#8217;s only suppose to work on clips placed with duplicateMovieClip or attachMovie.</p>
<p>if destroyOjbect has to have the uiobject code to work, then i could see it not being very useful in projects that don&#8217;t use the uiobjects code.</p>
<p>also, could you use delete instead?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: flashape		</title>
		<link>https://jessewarden.com/2004/06/removemovieclip-vs-destroyobject.html/comment-page-1#comment-1811</link>

		<dc:creator><![CDATA[flashape]]></dc:creator>
		<pubDate>Sat, 19 Jun 2004 10:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://jessewarden.com/?p=556#comment-1811</guid>

					<description><![CDATA[actually, i had the wrong post..i was talking about all the comments in you web apps/window clients post.]]></description>
			<content:encoded><![CDATA[<p>actually, i had the wrong post..i was talking about all the comments in you web apps/window clients post.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
