<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Adding more than one button to a FLA file while rocking it in ActionScript 3.0</title>
	<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/</link>
	<description>...the site you can never remember how to type...</description>
	<pubDate>Thu, 28 Aug 2008 12:32:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Thomas</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-485</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sat, 23 Aug 2008 11:55:14 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-485</guid>
		<description>http://www.morecult.com that is :-)</description>
		<content:encoded><![CDATA[<p><a href="http://www.morecult.com" rel="nofollow" onclick="javascript:pageTracker._trackPageview ('/outbound/www.morecult.com');">http://www.morecult.com</a> that is :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-484</link>
		<dc:creator>Thomas</dc:creator>
		<pubDate>Sat, 23 Aug 2008 11:54:14 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-484</guid>
		<description>my new site works, wanted to thank you as well for your assistance, look at my site it's really cool...I think ;-)

Peace
Thomas</description>
		<content:encoded><![CDATA[<p>my new site works, wanted to thank you as well for your assistance, look at my site it&#8217;s really cool&#8230;I think ;-)</p>
<p>Peace<br />
Thomas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugene Stadnichenko</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-447</link>
		<dc:creator>Eugene Stadnichenko</dc:creator>
		<pubDate>Sat, 16 Aug 2008 18:26:49 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-447</guid>
		<description>Thank you so much! you definitely helped me big time today... i'm a total n00b in Flash all around... Have been looking up a fair few tutorials and yours is the first that made complete sense and everything is working for me! thanks again</description>
		<content:encoded><![CDATA[<p>Thank you so much! you definitely helped me big time today&#8230; i&#8217;m a total n00b in Flash all around&#8230; Have been looking up a fair few tutorials and yours is the first that made complete sense and everything is working for me! thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jen, a flashthusiast</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-402</link>
		<dc:creator>Jen, a flashthusiast</dc:creator>
		<pubDate>Fri, 01 Aug 2008 05:32:24 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-402</guid>
		<description>Hi Rachel and Amy,

I hope I've covered this in a new post I made about buttons and scenes and uploaded some FLAs: http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/. 

It sounds like you may need to make sure to target the scene in your button code, because if you're pointing to frames Flash may get confused once it's published (in a SWF, there's only one sequence of frames). 

Does that work/help?

Jen.</description>
		<content:encoded><![CDATA[<p>Hi Rachel and Amy,</p>
<p>I hope I&#8217;ve covered this in a new post I made about buttons and scenes and uploaded some FLAs: <a href="http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/." rel="nofollow">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/.</a> </p>
<p>It sounds like you may need to make sure to target the scene in your button code, because if you&#8217;re pointing to frames Flash may get confused once it&#8217;s published (in a SWF, there&#8217;s only one sequence of frames). </p>
<p>Does that work/help?</p>
<p>Jen.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rachel</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-398</link>
		<dc:creator>Rachel</dc:creator>
		<pubDate>Thu, 31 Jul 2008 12:49:29 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-398</guid>
		<description>Hi Jen,

I have the same problem as Amy Berg (June 17th) - is there any way to make buttons work while navigating around frames in scenes?

Would appreciate any feedback you could give, thanks!

Rachel</description>
		<content:encoded><![CDATA[<p>Hi Jen,</p>
<p>I have the same problem as Amy Berg (June 17th) - is there any way to make buttons work while navigating around frames in scenes?</p>
<p>Would appreciate any feedback you could give, thanks!</p>
<p>Rachel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-367</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Fri, 18 Jul 2008 00:47:54 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-367</guid>
		<description>***MODERATOR PLEASE DELETE LAST POST 'JAKEMOBBS'***

Hi Jen,

Hope you can help me..
Here’s my AS3 code for buttons leading to URLS (hoping to open in the same window):

Trailer.addEventListener(MouseEvent.CLICK,clickHandler);
function clickHandler(event:MouseEvent):void{
navigateToURL(new URLRequest(”http://the-slopes.com/The_Film.html”), “_self”);
}
Ksusha.addEventListener(MouseEvent.CLICK,clickHandler2);
function clickHandler2(event:MouseEvent):void{
navigateToURL(new URLRequest(”http://the-slopes.com/Ksushas_Interview.html”), “_self”);
}
Stas.addEventListener(MouseEvent.CLICK,clickHandler3);
function clickHandler3(event:MouseEvent):void{
navigateToURL(new URLRequest(”http://the-slopes.com/Stas_Interview_2.html”), “_self”);
}
Basement.addEventListener(MouseEvent.CLICK,clickHandler4);
function clickHandler4(event:MouseEvent):void{
navigateToURL(new URLRequest(”http://the-slopes.com/Basement_Tour.html”), “_self”);
}

it works fine when I test it in flash, but when i actually upload it, none of the buttons go anywhere..
any thoughts? thanks in advance..

Jake</description>
		<content:encoded><![CDATA[<p>***MODERATOR PLEASE DELETE LAST POST &#8216;JAKEMOBBS&#8217;***</p>
<p>Hi Jen,</p>
<p>Hope you can help me..<br />
Here’s my AS3 code for buttons leading to URLS (hoping to open in the same window):</p>
<p>Trailer.addEventListener(MouseEvent.CLICK,clickHandler);<br />
function clickHandler(event:MouseEvent):void{<br />
navigateToURL(new URLRequest(”http://the-slopes.com/The_Film.html”), “_self”);<br />
}<br />
Ksusha.addEventListener(MouseEvent.CLICK,clickHandler2);<br />
function clickHandler2(event:MouseEvent):void{<br />
navigateToURL(new URLRequest(”http://the-slopes.com/Ksushas_Interview.html”), “_self”);<br />
}<br />
Stas.addEventListener(MouseEvent.CLICK,clickHandler3);<br />
function clickHandler3(event:MouseEvent):void{<br />
navigateToURL(new URLRequest(”http://the-slopes.com/Stas_Interview_2.html”), “_self”);<br />
}<br />
Basement.addEventListener(MouseEvent.CLICK,clickHandler4);<br />
function clickHandler4(event:MouseEvent):void{<br />
navigateToURL(new URLRequest(”http://the-slopes.com/Basement_Tour.html”), “_self”);<br />
}</p>
<p>it works fine when I test it in flash, but when i actually upload it, none of the buttons go anywhere..<br />
any thoughts? thanks in advance..</p>
<p>Jake</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MKane</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-348</link>
		<dc:creator>MKane</dc:creator>
		<pubDate>Tue, 08 Jul 2008 03:33:41 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-348</guid>
		<description>Hello,

I am writing for help because I am at my wits end.  I am trying to make my flash portfolio using these instructions.  There are 12 buttons, each going to a different frame.  (I have put the frames right next to each other, not on 5 and 10 ect I don't know if that is bad)  Anyway, everytime I put in your code and (and alter it to my specs) It tells me mouse event is wrong.  Now I have tried working with it, but really, only the first button would end up working.

Does anyone know what I am doing wrong?  I would be so grateful for some guidance.

All buttons are btn1-btn12 and Frame1-Frame12

stop();
btn1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
 gotoAndStop(1);
}
 
btn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
 gotoAndStop(2);
}
stop();
btn3.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
 gotoAndStop(3);
}
 
btn4.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
 gotoAndStop(4);
}</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am writing for help because I am at my wits end.  I am trying to make my flash portfolio using these instructions.  There are 12 buttons, each going to a different frame.  (I have put the frames right next to each other, not on 5 and 10 ect I don&#8217;t know if that is bad)  Anyway, everytime I put in your code and (and alter it to my specs) It tells me mouse event is wrong.  Now I have tried working with it, but really, only the first button would end up working.</p>
<p>Does anyone know what I am doing wrong?  I would be so grateful for some guidance.</p>
<p>All buttons are btn1-btn12 and Frame1-Frame12</p>
<p>stop();<br />
btn1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);<br />
function mouseDownHandler1(event:MouseEvent):void {<br />
 gotoAndStop(1);<br />
}</p>
<p>btn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);<br />
function mouseDownHandler2(event:MouseEvent):void {<br />
 gotoAndStop(2);<br />
}<br />
stop();<br />
btn3.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);<br />
function mouseDownHandler1(event:MouseEvent):void {<br />
 gotoAndStop(3);<br />
}</p>
<p>btn4.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);<br />
function mouseDownHandler2(event:MouseEvent):void {<br />
 gotoAndStop(4);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy Berg</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-316</link>
		<dc:creator>Amy Berg</dc:creator>
		<pubDate>Tue, 17 Jun 2008 17:11:02 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-316</guid>
		<description>Hi, there --

I have a file with three scenes. They all reference buttons that navigate to content in "Scene2." I can use these buttons to navigate to Scene2 from both Scene1 and Scene3, but once inside Scene2 they no longer work. However, if I play straight through Scene1 without navigating at all, the buttons in Scene2 will work. None of my code has changed and my file was working yesterday.

Any suggestions? 

Thanks,
Amy</description>
		<content:encoded><![CDATA[<p>Hi, there &#8211;</p>
<p>I have a file with three scenes. They all reference buttons that navigate to content in &#8220;Scene2.&#8221; I can use these buttons to navigate to Scene2 from both Scene1 and Scene3, but once inside Scene2 they no longer work. However, if I play straight through Scene1 without navigating at all, the buttons in Scene2 will work. None of my code has changed and my file was working yesterday.</p>
<p>Any suggestions? </p>
<p>Thanks,<br />
Amy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-314</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 16 Jun 2008 12:46:30 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-314</guid>
		<description>Hi every body,
Can you help me with Actionscript 3.0 please?
I have a vertical scroll with 10 buttons (but_one, but_two, ... etc.) and I have 10 FLV movies (mov_one, mov_two, ... etc.) and I need to link each button to one of these movies so I can see one movie at a time (in the same position) every time I click on one of the buttons.
I have all the movies in one layer and I don´t know if it is a problem, cause when I tried to link each movie with one of these buttons with actionscript, I could see only the first movie (by clicking but_one) and when I click on any other button the first movie does not disapiared and or the first movie overlaps with the other movies when I click them.
Please, any body their can help me??

Thanks alot!</description>
		<content:encoded><![CDATA[<p>Hi every body,<br />
Can you help me with Actionscript 3.0 please?<br />
I have a vertical scroll with 10 buttons (but_one, but_two, &#8230; etc.) and I have 10 FLV movies (mov_one, mov_two, &#8230; etc.) and I need to link each button to one of these movies so I can see one movie at a time (in the same position) every time I click on one of the buttons.<br />
I have all the movies in one layer and I don´t know if it is a problem, cause when I tried to link each movie with one of these buttons with actionscript, I could see only the first movie (by clicking but_one) and when I click on any other button the first movie does not disapiared and or the first movie overlaps with the other movies when I click them.<br />
Please, any body their can help me??</p>
<p>Thanks alot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bibiana</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-312</link>
		<dc:creator>Bibiana</dc:creator>
		<pubDate>Mon, 16 Jun 2008 01:34:43 +0000</pubDate>
		<guid>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-312</guid>
		<description>Hi Jen!
If you could help me, I have 3 buttons. 2 of them dont have problem, but the middle one is giving me the error: 1120: Access of undefined property but_portfolio. why? thanks for any help!!

this is my code:

stop();

but_profile.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
	gotoAndStop(73);
}

but_portfolio.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
	gotoAndStop(73);
}

but_contact.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);
function mouseDownHandler3(event:MouseEvent):void {
	gotoAndStop(73);
}</description>
		<content:encoded><![CDATA[<p>Hi Jen!<br />
If you could help me, I have 3 buttons. 2 of them dont have problem, but the middle one is giving me the error: 1120: Access of undefined property but_portfolio. why? thanks for any help!!</p>
<p>this is my code:</p>
<p>stop();</p>
<p>but_profile.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);<br />
function mouseDownHandler1(event:MouseEvent):void {<br />
	gotoAndStop(73);<br />
}</p>
<p>but_portfolio.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);<br />
function mouseDownHandler2(event:MouseEvent):void {<br />
	gotoAndStop(73);<br />
}</p>
<p>but_contact.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);<br />
function mouseDownHandler3(event:MouseEvent):void {<br />
	gotoAndStop(73);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
