<?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"
	>
<channel>
	<title>Comments on: FAQ</title>
	<atom:link href="http://evolve.reintroducing.com/faq/feed/" rel="self" type="application/rss+xml" />
	<link>http://evolve.reintroducing.com</link>
	<description>Learn &#38; Interact with the ActionScript World</description>
	<pubDate>Tue, 07 Oct 2008 18:03:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Matt Przybylski</title>
		<link>http://evolve.reintroducing.com/faq/#comment-38</link>
		<dc:creator>Matt Przybylski</dc:creator>
		<pubDate>Tue, 06 Nov 2007 14:26:30 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/faq/#comment-38</guid>
		<description>Hey Lamdo,
If I understand correctly, you could do something like this:  in Main.as, define an array with your movie clips in the order that they will be called by the buttons.  So if you want button1 to play mc_1, and button2 to play mc_3, you'd do like so:

[as]
var clips:Array = new Array(mc_1, mc_3);
[/as]

Then, in the onMenuButtonClicked event handler, you'd add this after the if/else statement:

[as]
clips[$evt.params.id].gotoAndPlay("whatever");
[/as]

something along those lines.  hope that helps.</description>
		<content:encoded><![CDATA[<p>Hey Lamdo,<br />
If I understand correctly, you could do something like this:  in Main.as, define an array with your movie clips in the order that they will be called by the buttons.  So if you want button1 to play mc_1, and button2 to play mc_3, you'd do like so:</p>
<div class="igBar"><span id="lactionscript-1"><a href="#" onclick="javascript:showPlainTxt('actionscript-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-1">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000000; font-weight: bold;">var</span> clips:<span style="color: #0066CC;">Array</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">Array</span><span style="color: #66cc66;">&#40;</span>mc_1, mc_3<span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Then, in the onMenuButtonClicked event handler, you'd add this after the if/else statement:</p>
<div class="igBar"><span id="lactionscript-2"><a href="#" onclick="javascript:showPlainTxt('actionscript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">Actionscript:</span>
<div id="actionscript-2">
<div class="actionscript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">clips<span style="color: #66cc66;">&#91;</span>$evt.<span style="color: #006600;">params</span>.<span style="color: #006600;">id</span><span style="color: #66cc66;">&#93;</span>.<span style="color: #0066CC;">gotoAndPlay</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"whatever"</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>something along those lines.  hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lamdo</title>
		<link>http://evolve.reintroducing.com/faq/#comment-37</link>
		<dc:creator>Lamdo</dc:creator>
		<pubDate>Tue, 06 Nov 2007 07:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://evolve.reintroducing.com/faq/#comment-37</guid>
		<description>Hi Matt,
I had visited your site and very interested to read your blog.  For an example of a topic "[AS3] Event Responsive Menu ", I had a question that how can you assign the name and id for the buttons that you can control each button to call an action differently. For example, I want the button1 to play mc_1 and button2 paly mc_3... Would you show me how to do that?

A lot of thanks to your help.

best,

LD</description>
		<content:encoded><![CDATA[<p>Hi Matt,<br />
I had visited your site and very interested to read your blog.  For an example of a topic "[AS3] Event Responsive Menu ", I had a question that how can you assign the name and id for the buttons that you can control each button to call an action differently. For example, I want the button1 to play mc_1 and button2 paly mc_3... Would you show me how to do that?</p>
<p>A lot of thanks to your help.</p>
<p>best,</p>
<p>LD</p>
]]></content:encoded>
	</item>
</channel>
</rss>
