<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>logon2 Blog &#187; ActionScript</title>
	<atom:link href="http://www.logon2.com.au/blog/archive/category/coding/actionscript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.logon2.com.au/blog</link>
	<description>Better use of the web for everybody</description>
	<lastBuildDate>Tue, 13 Jul 2010 12:44:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Removing MovieClip Children from MovieClip in Flash Using ActionScript</title>
		<link>http://www.logon2.com.au/blog/archive/coding/actionscript/removing-movieclip-children-from-movieclip-in-flash-using-actionscript/</link>
		<comments>http://www.logon2.com.au/blog/archive/coding/actionscript/removing-movieclip-children-from-movieclip-in-flash-using-actionscript/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 04:49:33 +0000</pubDate>
		<dc:creator>Tim</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[actionscirpt]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[elements]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[internet-explorer]]></category>
		<category><![CDATA[loader]]></category>
		<category><![CDATA[movieclips]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[remove]]></category>

		<guid isPermaLink="false">http://www.logon2.com.au/blog/archive/coding/actionscript/removing-movieclip-children-from-movieclip-in-flash-using-actionscript/</guid>
		<description><![CDATA[The Problem While working on an update for Once Upon a Bride&#8217;s handmade jewellery website, I had to overcome a certain bug or problem in Internet Explorer that caused images loaded into Loader Components to render incorrectly and scale incorrectly, usually with incorrect width and height. This was occurring after loading about 12 &#8211; 15 [...]]]></description>
			<content:encoded><![CDATA[<h3>The Problem</h3>
<p>While working on an update for <a href="http://www.onceuponabride.com.au/" target="_blank">Once Upon a Bride&#8217;s handmade jewellery</a> website, I had to overcome a certain bug or problem in Internet Explorer that caused images loaded into Loader Components to render incorrectly and scale incorrectly, usually with incorrect width and height.  This was occurring after loading about 12 &#8211; 15 images.</p>
<p>So instead of loading them all at once, I made it load only eight images, and let the users view a page of eight at a time. <strong>The only problem I had was clearing the old thumbnails before loading the new ones.</strong></p>
<h3>The Solution</h3>
<p>The Solution  After a bit of looking around, here&#8217;s the code:</p>
<pre>
function clearMovieClips(parentMovieClip) {
	for (obj in parentMovieClip){

		if (typeof(parentMovieClip[obj])=="movieclip"){
			parentMovieClip[obj].removeMovieClip();
		}
	}
}</pre>
<h3>The Proof</h3>
<p>Now a nice before and after shot:</p>
<p align="center">Before:</p>
<p align="center"><a href="http://www.logon2.com.au/blog/wp-content/actionscript-remove-children-before-fix1.jpg" title="Once Upon a Bride - Before"><img src="http://www.logon2.com.au/blog/wp-content/actionscript-remove-children-before-fix1.thumbnail.jpg" alt="Once Upon a Bride - Before" /></a></p>
<p align="center">&nbsp;</p>
<p align="center">After:</p>
<p align="center"><a href="http://www.logon2.com.au/blog/wp-content/actionscript-remove-children-after-fix.jpg" title="Once Upon a Bride - After"><img src="http://www.logon2.com.au/blog/wp-content/actionscript-remove-children-after-fix.thumbnail.jpg" alt="Once Upon a Bride - After" /></a></p>
<h3>Related Posts:</h3><ul class="related_post"><li><a href="http://www.logon2.com.au/blog/archive/troubleshooting/accessible-valid-dropdown-menu-or-popup-menu-using-css-and-semantic-html/" title="Accessible, Valid Dropdown Menu or Popup Menu using CSS and Semantic HTML">Accessible, Valid Dropdown Menu or Popup Menu using CSS and Semantic HTML</a></li><li><a href="http://www.logon2.com.au/blog/archive/web-design/xhtml-and-html5-compliant-flash-stop-using-embed-and-invalid-xhtmlhtml5/" title="XHTML and HTML5 Compliant Flash &#8211; Stop Using Embed and Invalid XHTML/HTML5">XHTML and HTML5 Compliant Flash &#8211; Stop Using Embed and Invalid XHTML/HTML5</a></li><li><a href="http://www.logon2.com.au/blog/archive/web-design/pngs-have-different-colours-in-different-browsers/" title="PNGs Have Different Colours in Different Browsers?">PNGs Have Different Colours in Different Browsers?</a></li><li><a href="http://www.logon2.com.au/blog/archive/internet-news/opera-says-microsoft-deprives-consumers-of-a-real-choice/" title="Opera says Microsoft &#8220;deprives consumers of a real choice&#8221;">Opera says Microsoft &#8220;deprives consumers of a real choice&#8221;</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.logon2.com.au/blog/archive/coding/actionscript/removing-movieclip-children-from-movieclip-in-flash-using-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

