<?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>Interactive Llama :: Interactive media tutorials and tips &#187; renaissance</title>
	<atom:link href="http://www.interactivellama.com/blog/archives/tag/renaissance/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.interactivellama.com/blog</link>
	<description>Interactive media tutorials and tips</description>
	<lastBuildDate>Wed, 23 Nov 2011 15:25:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Flash: Using swapDepths()</title>
		<link>http://www.interactivellama.com/blog/archives/flash-using-swapdepths/</link>
		<comments>http://www.interactivellama.com/blog/archives/flash-using-swapdepths/#comments</comments>
		<pubDate>Thu, 29 Jun 2006 21:00:00 +0000</pubDate>
		<dc:creator>Stephen James</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[dynamic_zone]]></category>
		<category><![CDATA[gotoandplay]]></category>
		<category><![CDATA[kirupa]]></category>
		<category><![CDATA[movieclip]]></category>
		<category><![CDATA[movieclips]]></category>
		<category><![CDATA[negative_value]]></category>
		<category><![CDATA[professionally]]></category>
		<category><![CDATA[renaissance]]></category>
		<category><![CDATA[runtime_errors]]></category>
		<category><![CDATA[timeline]]></category>
		<category><![CDATA[zone_flash]]></category>

		<guid isPermaLink="false">http://smjdesign.com/designwell/?p=78</guid>
		<description><![CDATA[NOTE: This article is only valid for ActionScript 2. In ActionScript 3, movieclip depths start at 0 and are contiguous. If you have 2 objects within a container, they will be at depths 0 and 1, respectively. You cannot have one at depth 0 and the other at 3 leaving 2 empty depths (depths 1 [...]]]></description>
			<content:encoded><![CDATA[<p><em>NOTE: <strong>This article is only valid for ActionScript 2</strong>. In ActionScript 3, movieclip depths start at 0 and are contiguous. If you have 2 objects within a container, they will be at depths 0 and 1, respectively. You cannot have one at depth 0 and the other at 3 leaving 2 empty depths (depths 1 and 2).</em></p>
<p>So you want to change the depth of your pictures and text in Flash with ActionScript?</p>
<p>Check out this tutorial, <a href="http://www.kirupa.com/developer/actionscript/depths.htm">Depths &#8211; How they work in Flash</a>, at <a href="http://www.kirupa.com/">Kirupa.com</a>. The first page you should already know if you been doing coding ActionScript professionally for some time. It is the <a href="http://www.kirupa.com/developer/actionscript/depths2.htm">second page</a> that is the most interesting:</p>
<p>Major points of the second page:</p>
<ul>
<li>Timeline Zone: Flash places static items on the timeline in depths -16,384 to -1.</li>
<li>Dynamic Zone: Dynamically placed movieclips are in 0 to 1,048,575 (and can only be removed from this range)</li>
<li>Reserved Zone: Dynamically placed movieclips can be in 1,048,576 to 2,130,690,04, (but can&#8217;t be removed)</li>
<li>The exception to these zones is createEmptyMovieClip method. There is no limit for the depth when creating an empty movieclip.</li>
<li>The timeline refreshes when gotoAndPlay() is called. Timeline refreshes do not keep dynamically placed movieclips on the screen if they were placed there by a frame in the future of the timeline. Example: A movieclip is dynamically created (or swapDepths is called, placing the movieclip in the &#8220;Dynamic Zone&#8221;) in frame 10. A refresh occurs in frame 5, when gotoAndPlay(5) is called.   The dynamically created movieclip (from frame 10) dissappears.</li>
<li>If you use swapDepths to bring a movieclip which was placed on the timeline originally to a depth above 0 (not the Timeline Zone), then in a timeline refresh, that clip will not be removed in the clearing of the depths (the refresh) and a new instance of the same movieclip will be placed at its original depth, thus duplicating it and causing runtime errors that Flash Player will not flag.</li>
</ul>
<p>So what is one to do? If you just swapping movieclips back and forth, like in this <a href="http://smjdesign.com/public/blog/rpointe/">template for the Renaissance Pointe</a>, then call swapDepths() with a negative value.</p>
<p><strong>Looking for an Actionscript 3 tutorial?</strong></p>
<p>You might try <a href="http://www.flepstudio.org/forum/tutorials/552-swapdepths-removed.html">this tutorial on swapDepths for Actionscript 3</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.interactivellama.com/blog/archives/flash-using-swapdepths/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

