<?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: AS2 loop through all the movie clips on the stage</title>
	<atom:link href="http://am3media.com/site/flash-as2/as2-loop-through-all-movieclips/feed/" rel="self" type="application/rss+xml" />
	<link>http://am3media.com/site/flash-as2/as2-loop-through-all-movieclips/</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Mon, 13 Feb 2012 19:46:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Michael</title>
		<link>http://am3media.com/site/flash-as2/as2-loop-through-all-movieclips/#comment-136</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 13 Feb 2012 19:46:53 +0000</pubDate>
		<guid isPermaLink="false">http://am3media.com/site/?p=417#comment-136</guid>
		<description>Try creating the &quot;buttonclicked&quot; as a method where you pass the MC that clicked it into the method. In Pseudo Code:

btn_01_mc.onRelease = buttonclicked(this);

function buttonclicked(theCallingMC:MovieClip)
{
    this._name will= &quot;the name of the MC that fired the method&quot;;
}

Would that work for you?</description>
		<content:encoded><![CDATA[<p>Try creating the &#8220;buttonclicked&#8221; as a method where you pass the MC that clicked it into the method. In Pseudo Code:</p>
<p>btn_01_mc.onRelease = buttonclicked(this);</p>
<p>function buttonclicked(theCallingMC:MovieClip)<br />
{<br />
    this._name will= &#8220;the name of the MC that fired the method&#8221;;<br />
}</p>
<p>Would that work for you?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Maynard</title>
		<link>http://am3media.com/site/flash-as2/as2-loop-through-all-movieclips/#comment-17</link>
		<dc:creator>Doug Maynard</dc:creator>
		<pubDate>Thu, 15 Apr 2010 15:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://am3media.com/site/?p=417#comment-17</guid>
		<description>This is a great little routine, but the related problem that&#039;s killing me is:

I have a dozen or so movieclips that are all instances of a symbol.

An event occurs - like onRelease and and I&#039;m now in the handler and I have no clue how to tell which movieclip instance got me there.

for example:

btn_01_mc.onRelease = buttonclicked;
btn_02_mc.onRelease = buttonclicked;
btn_03_mc.onRelease = buttonclicked;


All these buttons btn_XX__mc are instances of a movieclip symbol. How do I tell, in my buttonclicked function, which button did the clicking?

In my &quot;really happy world&quot; I would like to pass a parameter to my buttonclicked function from each button, but I can&#039;t see how to do that either.

Any help greatly appreciated.

thanks
Doug</description>
		<content:encoded><![CDATA[<p>This is a great little routine, but the related problem that&#8217;s killing me is:</p>
<p>I have a dozen or so movieclips that are all instances of a symbol.</p>
<p>An event occurs &#8211; like onRelease and and I&#8217;m now in the handler and I have no clue how to tell which movieclip instance got me there.</p>
<p>for example:</p>
<p>btn_01_mc.onRelease = buttonclicked;<br />
btn_02_mc.onRelease = buttonclicked;<br />
btn_03_mc.onRelease = buttonclicked;</p>
<p>All these buttons btn_XX__mc are instances of a movieclip symbol. How do I tell, in my buttonclicked function, which button did the clicking?</p>
<p>In my &#8220;really happy world&#8221; I would like to pass a parameter to my buttonclicked function from each button, but I can&#8217;t see how to do that either.</p>
<p>Any help greatly appreciated.</p>
<p>thanks<br />
Doug</p>
]]></content:encoded>
	</item>
</channel>
</rss>

