<?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: Easy Movie Clip Buttons Part 2 of 3: Dynamic Button Placement</title>
	<atom:link href="http://www.rabidgadfly.com/index.php/2007/02/05/easy-movie-clip-buttons-part-2-of-3-dynamic-button-placement/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rabidgadfly.com/index.php/2007/02/05/easy-movie-clip-buttons-part-2-of-3-dynamic-button-placement/</link>
	<description>Glenn Gervais&#039;s methods, tips, and musings on Flash, ColdFusion, XML, and other web technology.</description>
	<lastBuildDate>Wed, 01 Sep 2010 12:20:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: selim dumlu</title>
		<link>http://www.rabidgadfly.com/index.php/2007/02/05/easy-movie-clip-buttons-part-2-of-3-dynamic-button-placement/comment-page-1/#comment-101148</link>
		<dc:creator>selim dumlu</dc:creator>
		<pubDate>Fri, 27 Mar 2009 12:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.rabidgadfly.com/?p=4#comment-101148</guid>
		<description>Hi;
I&#039;m in desperate need of your 3. example for my schoolwork .Please send it here one more ,because it&#039;s deleted.Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi;<br />
I&#8217;m in desperate need of your 3. example for my schoolwork .Please send it here one more ,because it&#8217;s deleted.Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rabidGadfly</title>
		<link>http://www.rabidgadfly.com/index.php/2007/02/05/easy-movie-clip-buttons-part-2-of-3-dynamic-button-placement/comment-page-1/#comment-14261</link>
		<dc:creator>rabidGadfly</dc:creator>
		<pubDate>Thu, 17 May 2007 13:25:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.rabidgadfly.com/?p=4#comment-14261</guid>
		<description>Hi Derek,
You have a few problems in that first example. The first is that you aren&#039;t putting the parens after getNextHighestDepth. You&#039;re also attaching a movie clip named &quot;empty_mc&quot; but you aren&#039;t giving it a name. attachMovie takes 3 parameters, linkage id, instance name, and depth. 

Also make sure that &quot;empty_mc&quot; has a linkage identifier in your library (Right-click the mc, click linkage, then click export for actionscript). 

Another problem is that you&#039;re referring to a movie clip named &quot;empty&quot; when you load the thumb but that doesn&#039;t exist.

One other issue that I&#039;m surprised you aren&#039;t running into in the second example is that you&#039;re using a String variable to refer to a movie clip. To do this you should enclose the variable in brackets.

In the end your code should end up looking something like this:

&lt;code&gt;
dynamicClip = &quot;btn_thumb_section1_&quot;+a;
_root.createEmptyMovieClip(dynamicClip, _root.getNextHighestDepth());
_root[dynamicClip].attachMovie(&quot;empty_mc&quot;, &quot;empty&quot;, _root.getNextHighestDepth());
_root[dynamicClip].empty.loadMovie(thumb_folder+section_1_thumbs);
_root[dynamicClip].onRelease = function(){
trace(&quot;clicked&quot;);
};
&lt;/code&gt;

Hope that helps.

-rG</description>
		<content:encoded><![CDATA[<p>Hi Derek,<br />
You have a few problems in that first example. The first is that you aren&#8217;t putting the parens after getNextHighestDepth. You&#8217;re also attaching a movie clip named &#8220;empty_mc&#8221; but you aren&#8217;t giving it a name. attachMovie takes 3 parameters, linkage id, instance name, and depth. </p>
<p>Also make sure that &#8220;empty_mc&#8221; has a linkage identifier in your library (Right-click the mc, click linkage, then click export for actionscript). </p>
<p>Another problem is that you&#8217;re referring to a movie clip named &#8220;empty&#8221; when you load the thumb but that doesn&#8217;t exist.</p>
<p>One other issue that I&#8217;m surprised you aren&#8217;t running into in the second example is that you&#8217;re using a String variable to refer to a movie clip. To do this you should enclose the variable in brackets.</p>
<p>In the end your code should end up looking something like this:</p>
<p><code><br />
dynamicClip = "btn_thumb_section1_"+a;<br />
_root.createEmptyMovieClip(dynamicClip, _root.getNextHighestDepth());<br />
_root[dynamicClip].attachMovie("empty_mc", "empty", _root.getNextHighestDepth());<br />
_root[dynamicClip].empty.loadMovie(thumb_folder+section_1_thumbs);<br />
_root[dynamicClip].onRelease = function(){<br />
trace("clicked");<br />
};<br />
</code></p>
<p>Hope that helps.</p>
<p>-rG</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://www.rabidgadfly.com/index.php/2007/02/05/easy-movie-clip-buttons-part-2-of-3-dynamic-button-placement/comment-page-1/#comment-14163</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Thu, 17 May 2007 04:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.rabidgadfly.com/?p=4#comment-14163</guid>
		<description>This is just about exactly what I am trying to accomplish, but my images are loaded thru xml...

This does not work:

&lt;code&gt;
dynamicClip = &quot;btn_thumb_section1_&quot;+a;
		_root.createEmptyMovieClip(dynamicClip, getNextHighestDepth);
		_root.dynamicClip.attachMovie(&quot;empty_mc&quot;, getNextHighestDepth);
		_root.dynamicClip.empty.loadMovie(thumb_folder+section_1_thumbs);
		_root.dynamicClip.onRelease = function(){
			trace(&quot;clicked&quot;);
		};
&lt;/code&gt;

but this does:

&lt;code&gt;
dynamicClip = &quot;btn_thumb_section1_&quot;+a;
		_root.createEmptyMovieClip(dynamicClip, getNextHighestDepth());
		loadMovie(thumb_folder+section_1_thumbs, dynamicClip);
		_root.dynamicClip.onRelease = function(){
			trace(&quot;clicked&quot;);
		};
&lt;/code&gt;

except that the onrelease doesn&#039;t do anything.

Any ideas?</description>
		<content:encoded><![CDATA[<p>This is just about exactly what I am trying to accomplish, but my images are loaded thru xml&#8230;</p>
<p>This does not work:</p>
<p><code><br />
dynamicClip = "btn_thumb_section1_"+a;<br />
		_root.createEmptyMovieClip(dynamicClip, getNextHighestDepth);<br />
		_root.dynamicClip.attachMovie("empty_mc", getNextHighestDepth);<br />
		_root.dynamicClip.empty.loadMovie(thumb_folder+section_1_thumbs);<br />
		_root.dynamicClip.onRelease = function(){<br />
			trace("clicked");<br />
		};<br />
</code></p>
<p>but this does:</p>
<p><code><br />
dynamicClip = "btn_thumb_section1_"+a;<br />
		_root.createEmptyMovieClip(dynamicClip, getNextHighestDepth());<br />
		loadMovie(thumb_folder+section_1_thumbs, dynamicClip);<br />
		_root.dynamicClip.onRelease = function(){<br />
			trace("clicked");<br />
		};<br />
</code></p>
<p>except that the onrelease doesn&#8217;t do anything.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
