<?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: Making a button work in Flash CS3 or Flash CS4 with ActionScript 3.0 - it&#8217;s not too bad</title>
	<atom:link href="http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/</link>
	<description>...and especially enthusiastic about motion tweens in Flash...</description>
	<pubDate>Fri, 12 Mar 2010 20:40:32 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: kmlgd</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40631</link>
		<dc:creator>kmlgd</dc:creator>
		<pubDate>Thu, 11 Mar 2010 19:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40631</guid>
		<description>i dont know why they´d turn easy simple tasks into really complex ones. thats nice for a programer i think but for the rest of us, no. ;(</description>
		<content:encoded><![CDATA[<p>i dont know why they´d turn easy simple tasks into really complex ones. thats nice for a programer i think but for the rest of us, no. ;(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40594</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Thu, 11 Mar 2010 02:21:28 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40594</guid>
		<description>Jen-

THANKS so much!</description>
		<content:encoded><![CDATA[<p>Jen-</p>
<p>THANKS so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jen deHaan</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40586</link>
		<dc:creator>Jen deHaan</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40586</guid>
		<description>@Bryan:
Both of them are pointing at the same function. Change the line that starts with replay to:

replay.addEventListener(MouseEvent.CLICK, buttonClickHandler2);

Post on multiple buttons: http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/</description>
		<content:encoded><![CDATA[<p>@Bryan:<br />
Both of them are pointing at the same function. Change the line that starts with replay to:</p>
<p>replay.addEventListener(MouseEvent.CLICK, buttonClickHandler2);</p>
<p>Post on multiple buttons: <a href="http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/" rel="nofollow">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40580</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Wed, 10 Mar 2010 21:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40580</guid>
		<description>This is my most recent attempt:

stop();
web_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.thelisaproject.org"));
}
replay.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler2(event:MouseEvent):void {
    gotoAndPlay(1);
}

Both buttons attempt to call the URL and neither goes to and plays frame 1.

I think I am out of my league.</description>
		<content:encoded><![CDATA[<p>This is my most recent attempt:</p>
<p>stop();<br />
web_btn.addEventListener(MouseEvent.CLICK, buttonClickHandler);<br />
function buttonClickHandler(event:MouseEvent):void {<br />
navigateToURL(new URLRequest(&#8221;http://www.thelisaproject.org&#8221;));<br />
}<br />
replay.addEventListener(MouseEvent.CLICK, buttonClickHandler);<br />
function buttonClickHandler2(event:MouseEvent):void {<br />
    gotoAndPlay(1);<br />
}</p>
<p>Both buttons attempt to call the URL and neither goes to and plays frame 1.</p>
<p>I think I am out of my league.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40575</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Wed, 10 Mar 2010 19:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40575</guid>
		<description>Well... I closed the program last night and when I opened it this morning...I was able to add the code to the actions panel.  SO Confused.

I was able to get my button working BUT I can't seem to get a second button working in the same scene.  (AS3)

What I have is two buttons.  One is a mouseover button (web_btn) that calls a URL and the other is a mouseover button (replay) that I need to go back to frame 1 and play.  Can you help with adding the correct code for the second button?

stop();
web_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.thelisaproject.org/"))     }</description>
		<content:encoded><![CDATA[<p>Well&#8230; I closed the program last night and when I opened it this morning&#8230;I was able to add the code to the actions panel.  SO Confused.</p>
<p>I was able to get my button working BUT I can&#8217;t seem to get a second button working in the same scene.  (AS3)</p>
<p>What I have is two buttons.  One is a mouseover button (web_btn) that calls a URL and the other is a mouseover button (replay) that I need to go back to frame 1 and play.  Can you help with adding the correct code for the second button?</p>
<p>stop();<br />
web_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);<br />
function mouseDownHandler(event:MouseEvent):void {<br />
    navigateToURL(new URLRequest(&#8221;http://www.thelisaproject.org/&#8221;))     }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bryan</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40558</link>
		<dc:creator>Bryan</dc:creator>
		<pubDate>Wed, 10 Mar 2010 06:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40558</guid>
		<description>Hello all.  I used Flash YEARS ago.  I am now on a Mac and have cs4.  This is so different and I am lost.  I read the great (and simple) tutorial above.  I created a flash ad with a button that has a mouseover.  When I try to include the script in the action panel, it says "Current selection cannot have actions applied to it."   LOL.  How do I make a simple button that calls a URL?  I don't know Flash any more.  Help.</description>
		<content:encoded><![CDATA[<p>Hello all.  I used Flash YEARS ago.  I am now on a Mac and have cs4.  This is so different and I am lost.  I read the great (and simple) tutorial above.  I created a flash ad with a button that has a mouseover.  When I try to include the script in the action panel, it says &#8220;Current selection cannot have actions applied to it.&#8221;   LOL.  How do I make a simple button that calls a URL?  I don&#8217;t know Flash any more.  Help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: easy</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40540</link>
		<dc:creator>easy</dc:creator>
		<pubDate>Tue, 09 Mar 2010 22:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40540</guid>
		<description>for the second btn you should have "buttonClickHandler2"
stop();
foodbtn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.bc.edu/dining"));
}
peoplebtn.addEventListener(MouseEvent.CLICK, buttonClickHandler2);
function buttonClickHandler2(event:MouseEvent):void {
navigateToURL(new URLRequest ("http://www.cbord.com"));
}</description>
		<content:encoded><![CDATA[<p>for the second btn you should have &#8220;buttonClickHandler2&#8243;<br />
stop();<br />
foodbtn.addEventListener(MouseEvent.CLICK, buttonClickHandler);<br />
function buttonClickHandler(event:MouseEvent):void {<br />
navigateToURL(new URLRequest(&#8221;http://www.bc.edu/dining&#8221;));<br />
}<br />
peoplebtn.addEventListener(MouseEvent.CLICK, buttonClickHandler2);<br />
function buttonClickHandler2(event:MouseEvent):void {<br />
navigateToURL(new URLRequest (&#8221;http://www.cbord.com&#8221;));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: easy</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40538</link>
		<dc:creator>easy</dc:creator>
		<pubDate>Tue, 09 Mar 2010 22:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40538</guid>
		<description>Hi Jennie and John, i noticed there was a problem with your code, if you have two buttons the code should be 
&lt;code&gt;
stop();
foodbtn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.bc.edu/dining"));
}
peoplebtn.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler2(event:MouseEvent):void {
    navigateToURL(new URLRequest ("http://www.cbord.com"));
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Hi Jennie and John, i noticed there was a problem with your code, if you have two buttons the code should be<br />
<code><br />
stop();<br />
foodbtn.addEventListener(MouseEvent.CLICK, buttonClickHandler);<br />
function buttonClickHandler(event:MouseEvent):void {<br />
    navigateToURL(new URLRequest("http://www.bc.edu/dining"));<br />
}<br />
peoplebtn.addEventListener(MouseEvent.CLICK, buttonClickHandler);<br />
function buttonClickHandler2(event:MouseEvent):void {<br />
    navigateToURL(new URLRequest ("http://www.cbord.com"));<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: subhash</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40519</link>
		<dc:creator>subhash</dc:creator>
		<pubDate>Tue, 09 Mar 2010 10:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40519</guid>
		<description>I placed 4 screens in 4 different frames of 1 layer, like 0th frame,40th frame,80th frame,120th frame .... so i want to move from 1st frame to 120th frame using a button control.All these frames must move sequential like a movie clip and has to show all the 4 screens while moving....So How to do this using a button control.</description>
		<content:encoded><![CDATA[<p>I placed 4 screens in 4 different frames of 1 layer, like 0th frame,40th frame,80th frame,120th frame &#8230;. so i want to move from 1st frame to 120th frame using a button control.All these frames must move sequential like a movie clip and has to show all the 4 screens while moving&#8230;.So How to do this using a button control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: subhash</title>
		<link>http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40518</link>
		<dc:creator>subhash</dc:creator>
		<pubDate>Tue, 09 Mar 2010 10:29:13 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/02/25/making-a-button-work-in-flash-cs3-with-actionscript-30-its-not-too-bad/#comment-40518</guid>
		<description>I placed 4 screens in 4 different frames like 0th frame,40th frame,80th frame,120th frame .... so i want to move from 1st frame to 120th frame using a button control.All these frames must move sequential like a movie clip and has to show all the 4 screens while moving....So How to do this using a button control.</description>
		<content:encoded><![CDATA[<p>I placed 4 screens in 4 different frames like 0th frame,40th frame,80th frame,120th frame &#8230;. so i want to move from 1st frame to 120th frame using a button control.All these frames must move sequential like a movie clip and has to show all the 4 screens while moving&#8230;.So How to do this using a button control.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
