<?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: Adding more than one button to a FLA file while rocking it in ActionScript 3.0</title>
	<atom:link href="http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/</link>
	<description>...and especially enthusiastic about motion tweens in Flash...</description>
	<pubDate>Sat, 13 Mar 2010 14:18:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Judy</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-40191</link>
		<dc:creator>Judy</dc:creator>
		<pubDate>Mon, 01 Mar 2010 18:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-40191</guid>
		<description>Can you help me make the change to AS3 for this code:
on (release) {
	getURL(clickTAG,'_blank');
}

My ad servers require the clickTAG in the script but I can't figure out how to make it work.  The clickTAG is used by DART and Yahoo!'s ad server to locate the url for the clickthrough.  We can't hardcode urls.

Thank you so much in advance!</description>
		<content:encoded><![CDATA[<p>Can you help me make the change to AS3 for this code:<br />
on (release) {<br />
	getURL(clickTAG,&#8217;_blank&#8217;);<br />
}</p>
<p>My ad servers require the clickTAG in the script but I can&#8217;t figure out how to make it work.  The clickTAG is used by DART and Yahoo!&#8217;s ad server to locate the url for the clickthrough.  We can&#8217;t hardcode urls.</p>
<p>Thank you so much in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DJ Edenbaum</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-39486</link>
		<dc:creator>DJ Edenbaum</dc:creator>
		<pubDate>Mon, 15 Feb 2010 08:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-39486</guid>
		<description>kindly disregard... i found my answer... btw your site was very helpfull!!!</description>
		<content:encoded><![CDATA[<p>kindly disregard&#8230; i found my answer&#8230; btw your site was very helpfull!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DJ Edenbaum</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-39483</link>
		<dc:creator>DJ Edenbaum</dc:creator>
		<pubDate>Mon, 15 Feb 2010 06:29:08 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-39483</guid>
		<description>ok... i'm working on my first Flash Website, and i'm having a little trouble.  I have five buttons, and the all have different names, but i keep getting an error 1023, followed by a 1021 for the last 3 buttons the first two work great... help me please... here is my code:

aboutus_btn.addEventListener(MouseEvent.MOUSE_DOWN,aboutus);
function aboutus(event:MouseEvent):void {
 navigateToURL(new URLRequest("Nebraska.html"), "_self");
}
Trotn_btn.addEventListener(MouseEvent.MOUSE_DOWN, Trotn);
function Trotn(event:MouseEvent):void {
 navigateToURL(new URLRequest("/****nebraska/Nation_Wide.html"), "_self");
}
IU_btn.addEventListener(MouseEvent.MOUSE_DOWN,IU);
function IU(event:MouseEvent):void {
 navigateToURL(new URLRequest("/****nebraska/Industrial.html"), "_self");
}
MU_btn.addEventListener(MouseEvent.MOUSE_DOWN, MU);
function MU(event:MouseEvent):void {
 navigateToURL(new URLRequest("/****nebraska/****.html"), "_self");
}
Join_btn.addEventListener(MouseEvent.MOUSE_DOWN, Join);
function Join(event:MouseEvent):void {
 navigateToURL(new URLRequest("/****nebraska/Membership.html"), "_self");
}

Forgive the asterisks... it to protect my non-profit organization... 
please help i am supposed to have this site up 2-16-2010 at 9am</description>
		<content:encoded><![CDATA[<p>ok&#8230; i&#8217;m working on my first Flash Website, and i&#8217;m having a little trouble.  I have five buttons, and the all have different names, but i keep getting an error 1023, followed by a 1021 for the last 3 buttons the first two work great&#8230; help me please&#8230; here is my code:</p>
<p>aboutus_btn.addEventListener(MouseEvent.MOUSE_DOWN,aboutus);<br />
function aboutus(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;Nebraska.html&#8221;), &#8220;_self&#8221;);<br />
}<br />
Trotn_btn.addEventListener(MouseEvent.MOUSE_DOWN, Trotn);<br />
function Trotn(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;/****nebraska/Nation_Wide.html&#8221;), &#8220;_self&#8221;);<br />
}<br />
IU_btn.addEventListener(MouseEvent.MOUSE_DOWN,IU);<br />
function IU(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;/****nebraska/Industrial.html&#8221;), &#8220;_self&#8221;);<br />
}<br />
MU_btn.addEventListener(MouseEvent.MOUSE_DOWN, MU);<br />
function MU(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;/****nebraska/****.html&#8221;), &#8220;_self&#8221;);<br />
}<br />
Join_btn.addEventListener(MouseEvent.MOUSE_DOWN, Join);<br />
function Join(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;/****nebraska/Membership.html&#8221;), &#8220;_self&#8221;);<br />
}</p>
<p>Forgive the asterisks&#8230; it to protect my non-profit organization&#8230;<br />
please help i am supposed to have this site up 2-16-2010 at 9am</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rob</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-39431</link>
		<dc:creator>rob</dc:creator>
		<pubDate>Sat, 13 Feb 2010 23:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-39431</guid>
		<description>Can you help me determine the code for your example that will make an email send?  Actually more than one email button in one framde.

I have been in flash for years, and after 8 hours of searching and trial and error, I am amazed how complicated something that used to be so simple has become.

Thanks for your help.

Rob</description>
		<content:encoded><![CDATA[<p>Can you help me determine the code for your example that will make an email send?  Actually more than one email button in one framde.</p>
<p>I have been in flash for years, and after 8 hours of searching and trial and error, I am amazed how complicated something that used to be so simple has become.</p>
<p>Thanks for your help.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hiromi</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-38497</link>
		<dc:creator>hiromi</dc:creator>
		<pubDate>Wed, 27 Jan 2010 20:51:50 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-38497</guid>
		<description>sorry,  i got it to work after i posted this...
thanks!</description>
		<content:encoded><![CDATA[<p>sorry,  i got it to work after i posted this&#8230;<br />
thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hiromi</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-38495</link>
		<dc:creator>hiromi</dc:creator>
		<pubDate>Wed, 27 Jan 2010 20:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-38495</guid>
		<description>hello
i am new to flash.

i created a movie
http://candmphotography.com/images/homebanner.swf

now, i am trying to make it so when i click on each image, it goes to different url.  for ex., if i click on baby photo, it goes to a url and if i click when a wedding dress shows, and i click on it, it goes to a different url.

i added this action in an action layer, but when i publish it, i get an error msg. 

"Access of undefined property Kids.
Access of undefined property Wedding."


as3:

Kids.addEventListener(MouseEvent.MOUSE_DOWN, buttonClickKids);
function buttonClickKids(event:MouseEvent):void {
 navigateToURL(new URLRequest("http://candmphotography.com/children.html"));
}


Wedding.addEventListener(MouseEvent.MOUSE_DOWN, buttonClickWedding);
function buttonClickWedding(event:MouseEvent):void {
 navigateToURL(new URLRequest("http://candmphotography.com/wedding.htm"));
}</description>
		<content:encoded><![CDATA[<p>hello<br />
i am new to flash.</p>
<p>i created a movie<br />
<a href="http://candmphotography.com/images/homebanner.swf" rel="nofollow">http://candmphotography.com/images/homebanner.swf</a></p>
<p>now, i am trying to make it so when i click on each image, it goes to different url.  for ex., if i click on baby photo, it goes to a url and if i click when a wedding dress shows, and i click on it, it goes to a different url.</p>
<p>i added this action in an action layer, but when i publish it, i get an error msg. </p>
<p>&#8220;Access of undefined property Kids.<br />
Access of undefined property Wedding.&#8221;</p>
<p>as3:</p>
<p>Kids.addEventListener(MouseEvent.MOUSE_DOWN, buttonClickKids);<br />
function buttonClickKids(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;http://candmphotography.com/children.html&#8221;));<br />
}</p>
<p>Wedding.addEventListener(MouseEvent.MOUSE_DOWN, buttonClickWedding);<br />
function buttonClickWedding(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;http://candmphotography.com/wedding.htm&#8221;));<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shannon</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-38023</link>
		<dc:creator>Shannon</dc:creator>
		<pubDate>Tue, 19 Jan 2010 21:56:07 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-38023</guid>
		<description>Hi all, 
I am creating a site for a not-for-profit org and have a navigation on the top that I want each button to link to a different page...
here is my code
stop();
homebtn.addEventListener(MouseEvent.MOUSE_DOWN, mousedownHandler);
function homebtnHandler(event:MouseEvent):void { 
 navigateToURL(new URLRequest("http://www.islandcoastprimarycare.org"), "_self");
}
aboutbtn.addEventListener(MouseEvent.MOUSE_DOWN, mousedownHandler2);
function aboutbtnHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("http://www.islandcoastprimarcare.org/about.html"), "_self");
}
resourcebtn.addEventListener(MouseEvent.MOUSE_DOWN, mousedownHandler3);
function resourcebtnHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("http://www.islandcoastprimarycare.org/resources.html"), "_self");
}
contactbtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseddownHandler4);
function aboutbtnHandler(event:MouseEvent):void {
 navigateToURL(new URLRequest("http://www.islandcoastprimarcare.org/contact.html"), "_self");
}

I get the following errors
'{' expected  for function homebtnHandler(event:MouseEvent):void { 

and 

Unexpected '}' encountered

Can anyone tell me what is wrong with the code? 
Please and Thank you!! :)
Shannon</description>
		<content:encoded><![CDATA[<p>Hi all,<br />
I am creating a site for a not-for-profit org and have a navigation on the top that I want each button to link to a different page&#8230;<br />
here is my code<br />
stop();<br />
homebtn.addEventListener(MouseEvent.MOUSE_DOWN, mousedownHandler);<br />
function homebtnHandler(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;http://www.islandcoastprimarycare.org&#8221;), &#8220;_self&#8221;);<br />
}<br />
aboutbtn.addEventListener(MouseEvent.MOUSE_DOWN, mousedownHandler2);<br />
function aboutbtnHandler(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;http://www.islandcoastprimarcare.org/about.html&#8221;), &#8220;_self&#8221;);<br />
}<br />
resourcebtn.addEventListener(MouseEvent.MOUSE_DOWN, mousedownHandler3);<br />
function resourcebtnHandler(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;http://www.islandcoastprimarycare.org/resources.html&#8221;), &#8220;_self&#8221;);<br />
}<br />
contactbtn.addEventListener(MouseEvent.MOUSE_DOWN, mouseddownHandler4);<br />
function aboutbtnHandler(event:MouseEvent):void {<br />
 navigateToURL(new URLRequest(&#8221;http://www.islandcoastprimarcare.org/contact.html&#8221;), &#8220;_self&#8221;);<br />
}</p>
<p>I get the following errors<br />
&#8216;{&#8217; expected  for function homebtnHandler(event:MouseEvent):void { </p>
<p>and </p>
<p>Unexpected &#8216;}&#8217; encountered</p>
<p>Can anyone tell me what is wrong with the code?<br />
Please and Thank you!! :)<br />
Shannon</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eileen</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-35820</link>
		<dc:creator>Eileen</dc:creator>
		<pubDate>Wed, 09 Dec 2009 19:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-35820</guid>
		<description>After long hours and numerous tries, tons of tutorials. it wasnt until I came across this website and found the code stop();
first_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
 gotoAndStop(5);
}
 
second_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
 gotoAndStop(10);
}

that I'd been searching for like what seems now forever... and viola...you had the correct code to make my buttons work... THANKYOU!</description>
		<content:encoded><![CDATA[<p>After long hours and numerous tries, tons of tutorials. it wasnt until I came across this website and found the code stop();<br />
first_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);<br />
function mouseDownHandler1(event:MouseEvent):void {<br />
 gotoAndStop(5);<br />
}</p>
<p>second_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);<br />
function mouseDownHandler2(event:MouseEvent):void {<br />
 gotoAndStop(10);<br />
}</p>
<p>that I&#8217;d been searching for like what seems now forever&#8230; and viola&#8230;you had the correct code to make my buttons work&#8230; THANKYOU!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pontus</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-35699</link>
		<dc:creator>Pontus</dc:creator>
		<pubDate>Mon, 07 Dec 2009 12:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-35699</guid>
		<description>I have an flash file with 4 scenes. In layer 2 i have a movieclip. In layer 1 i have 4 of the buildt in buttons which you can find under components. I want this 4 buttons to go to 4 seperate scenes. How do i do it?
Should i use this code?

}
 
b80.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler5);
function mouseDownHandler5(event:MouseEvent):void {
    gotoAndStop("Scene 1");
If its correct where shall i but it because direct on the button you cant have a action.
//Pontus</description>
		<content:encoded><![CDATA[<p>I have an flash file with 4 scenes. In layer 2 i have a movieclip. In layer 1 i have 4 of the buildt in buttons which you can find under components. I want this 4 buttons to go to 4 seperate scenes. How do i do it?<br />
Should i use this code?</p>
<p>}</p>
<p>b80.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler5);<br />
function mouseDownHandler5(event:MouseEvent):void {<br />
    gotoAndStop(&#8221;Scene 1&#8243;);<br />
If its correct where shall i but it because direct on the button you cant have a action.<br />
//Pontus</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stan</title>
		<link>http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-35692</link>
		<dc:creator>Stan</dc:creator>
		<pubDate>Mon, 07 Dec 2009 07:42:48 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/03/13/adding-more-than-one-button-to-a-fla-file-while-rocking-it-in-actionscript-30/#comment-35692</guid>
		<description>I keep getting a error 1120: Access of undefined property btn4Handler. Below is the code I am using.

Any help to solve this would be appreciated.


btn1.addEventListener(MouseEvent.MOUSE_DOWN, btn1Handler);
function btn1Handler(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.s2sbuilders.com"), "_blank");
}

btn2.addEventListener(MouseEvent.MOUSE_DOWN, btn2Handler);
function btn2Handler(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.s2sbuilders.com/prodects.htm"), "_blank");
}

btn3.addEventListener(MouseEvent.MOUSE_DOWN, btn3Handler);
function btn3Handler(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.s2sbuilders.com/photos.htm"), "_blank");
}

btn4.addEventListener(MouseEvent.MOUSE_DOWN, btn4Handler);
function btn4andler(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.s2sbuilders.com/quotes.htm"), "_blank");
}</description>
		<content:encoded><![CDATA[<p>I keep getting a error 1120: Access of undefined property btn4Handler. Below is the code I am using.</p>
<p>Any help to solve this would be appreciated.</p>
<p>btn1.addEventListener(MouseEvent.MOUSE_DOWN, btn1Handler);<br />
function btn1Handler(event:MouseEvent):void {<br />
    navigateToURL(new URLRequest(&#8221;http://www.s2sbuilders.com&#8221;), &#8220;_blank&#8221;);<br />
}</p>
<p>btn2.addEventListener(MouseEvent.MOUSE_DOWN, btn2Handler);<br />
function btn2Handler(event:MouseEvent):void {<br />
    navigateToURL(new URLRequest(&#8221;http://www.s2sbuilders.com/prodects.htm&#8221;), &#8220;_blank&#8221;);<br />
}</p>
<p>btn3.addEventListener(MouseEvent.MOUSE_DOWN, btn3Handler);<br />
function btn3Handler(event:MouseEvent):void {<br />
    navigateToURL(new URLRequest(&#8221;http://www.s2sbuilders.com/photos.htm&#8221;), &#8220;_blank&#8221;);<br />
}</p>
<p>btn4.addEventListener(MouseEvent.MOUSE_DOWN, btn4Handler);<br />
function btn4andler(event:MouseEvent):void {<br />
    navigateToURL(new URLRequest(&#8221;http://www.s2sbuilders.com/quotes.htm&#8221;), &#8220;_blank&#8221;);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>
