<?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: Creating buttons that link to different scenes, and within a scene, using ActionScript 3.0</title>
	<atom:link href="http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/feed/" rel="self" type="application/rss+xml" />
	<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/</link>
	<description>...and especially enthusiastic about motion tweens in Flash...</description>
	<pubDate>Sat, 13 Mar 2010 14:18:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Garth</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-36500</link>
		<dc:creator>Garth</dc:creator>
		<pubDate>Mon, 21 Dec 2009 23:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-36500</guid>
		<description>Update... Still no luck, even tried re-aranging everything to different locations. Seems that I am able to brouse the menu´s top down, but go bottom up and they no longer work. Home button re-sets the scene, so if I know where I want to go, then I can go straight there. No good though for people brousing the site though. Any thoughts on why. Would not have this problem if I made the site in Dreamweaver. P.S. I had started in Dreamweaver, but menus and frames do not mix well if the frame is not big enough.</description>
		<content:encoded><![CDATA[<p>Update&#8230; Still no luck, even tried re-aranging everything to different locations. Seems that I am able to brouse the menu´s top down, but go bottom up and they no longer work. Home button re-sets the scene, so if I know where I want to go, then I can go straight there. No good though for people brousing the site though. Any thoughts on why. Would not have this problem if I made the site in Dreamweaver. P.S. I had started in Dreamweaver, but menus and frames do not mix well if the frame is not big enough.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garth</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-36406</link>
		<dc:creator>Garth</dc:creator>
		<pubDate>Sat, 19 Dec 2009 21:21:10 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-36406</guid>
		<description>Hope  you can help. I am new to flash, but am on a steep learning curve as am a fast study. I am building my first site and it is a bit complex. It resembles a family tree structure of movie clips within movie clips with buttons animating in other movie clips that are mixed into more movie clips. Seems a bit much perhaps, but it was needed to acheave the desiered look and functionality. Problems started with navigating a time line from buttons located tree or so branches down. Though I never found anything to help me in any tutorial I looked at, I did figger it out. The code needs to be in the timeline that you are navigating while you referance the button  instance. Problem solved you may say, well no. A new one popped up that is to me not saposed to be there, which is that while navigating the buttons, the ones that scroll out for finer navigation do not always work. Hard to explane it better with out writing a book on it. 

Hope you can help or someone to give an idea.</description>
		<content:encoded><![CDATA[<p>Hope  you can help. I am new to flash, but am on a steep learning curve as am a fast study. I am building my first site and it is a bit complex. It resembles a family tree structure of movie clips within movie clips with buttons animating in other movie clips that are mixed into more movie clips. Seems a bit much perhaps, but it was needed to acheave the desiered look and functionality. Problems started with navigating a time line from buttons located tree or so branches down. Though I never found anything to help me in any tutorial I looked at, I did figger it out. The code needs to be in the timeline that you are navigating while you referance the button  instance. Problem solved you may say, well no. A new one popped up that is to me not saposed to be there, which is that while navigating the buttons, the ones that scroll out for finer navigation do not always work. Hard to explane it better with out writing a book on it. </p>
<p>Hope you can help or someone to give an idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jouky</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-36388</link>
		<dc:creator>jouky</dc:creator>
		<pubDate>Sat, 19 Dec 2009 13:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-36388</guid>
		<description>Hi. I'm having a problem with my flash website using AS3. 
Here is the problem I encountered, whenever I click a button on my website it just keep poping out this error message : 


TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at CFMWEBSITE_fla::MainTimeline/frame2()
	at flash.display::MovieClip/gotoAndStop()
	at CFMWEBSITE_fla::MainTimeline/profile_homepage()

Here is my code:
stop();
homebutton.addEventListener(MouseEvent.MOUSE_DOWN,home_linkpage);
function home_linkpage(event:MouseEvent):void {
 gotoAndStop(1,"Homepage");
}
 
profilebutton.addEventListener(MouseEvent.MOUSE_DOWN, profile_linkpage);
function profile_linkpage(event:MouseEvent):void {
 gotoAndStop(1,"Profilepage");
}

animationbutton.addEventListener(MouseEvent.MOUSE_DOWN,animation_linkpage);
function animation_linkpage(event:MouseEvent):void {
 gotoAndStop(1,"Animationpage");
}
gallerybutton.addEventListener(MouseEvent.MOUSE_DOWN, gallery_linkpage);
function gallery_linkpage(event:MouseEvent):void {
 gotoAndStop(1,"Gallerypage");
}
linkbutton.addEventListener(MouseEvent.MOUSE_DOWN, link_linkpage);
function link_linkpage(event:MouseEvent):void {
 gotoAndStop(1,"Linkspage");
}

How can I solve this problem? Thank</description>
		<content:encoded><![CDATA[<p>Hi. I&#8217;m having a problem with my flash website using AS3.<br />
Here is the problem I encountered, whenever I click a button on my website it just keep poping out this error message : </p>
<p>TypeError: Error #1009: Cannot access a property or method of a null object reference.<br />
	at CFMWEBSITE_fla::MainTimeline/frame2()<br />
	at flash.display::MovieClip/gotoAndStop()<br />
	at CFMWEBSITE_fla::MainTimeline/profile_homepage()</p>
<p>Here is my code:<br />
stop();<br />
homebutton.addEventListener(MouseEvent.MOUSE_DOWN,home_linkpage);<br />
function home_linkpage(event:MouseEvent):void {<br />
 gotoAndStop(1,&#8221;Homepage&#8221;);<br />
}</p>
<p>profilebutton.addEventListener(MouseEvent.MOUSE_DOWN, profile_linkpage);<br />
function profile_linkpage(event:MouseEvent):void {<br />
 gotoAndStop(1,&#8221;Profilepage&#8221;);<br />
}</p>
<p>animationbutton.addEventListener(MouseEvent.MOUSE_DOWN,animation_linkpage);<br />
function animation_linkpage(event:MouseEvent):void {<br />
 gotoAndStop(1,&#8221;Animationpage&#8221;);<br />
}<br />
gallerybutton.addEventListener(MouseEvent.MOUSE_DOWN, gallery_linkpage);<br />
function gallery_linkpage(event:MouseEvent):void {<br />
 gotoAndStop(1,&#8221;Gallerypage&#8221;);<br />
}<br />
linkbutton.addEventListener(MouseEvent.MOUSE_DOWN, link_linkpage);<br />
function link_linkpage(event:MouseEvent):void {<br />
 gotoAndStop(1,&#8221;Linkspage&#8221;);<br />
}</p>
<p>How can I solve this problem? Thank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: meda</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-35928</link>
		<dc:creator>meda</dc:creator>
		<pubDate>Sat, 12 Dec 2009 01:06:33 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-35928</guid>
		<description>You are awesome, the way you explain and demo is clear. Thank you for your blog and directions, now my homework is done.</description>
		<content:encoded><![CDATA[<p>You are awesome, the way you explain and demo is clear. Thank you for your blog and directions, now my homework is done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pontus</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-35790</link>
		<dc:creator>Pontus</dc:creator>
		<pubDate>Wed, 09 Dec 2009 06:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-35790</guid>
		<description>Hi, i have a menu in my fla file where i want to link to 4 diffrent scenes. I have used this code:
stop();b60.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);function mouseDownHandler1(event:MouseEvent):void {
 
gotoAndPlay(1, "Scen 1");
 
}
b70.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);function mouseDownHandler2(event:MouseEvent):void {
 
gotoAndPlay(1, "Scen 44");
 
}
b80.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);function mouseDownHandler3(event:MouseEvent):void {
 
gotoAndPlay(1, "Scen 45");
 
}
b90.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler4);function mouseDownHandler4(event:MouseEvent):void {
 
gotoAndPlay(1, "Scen 50");
 
}

But it dosent work.
The movieclip i have in the file dosent start when i add this code and if i click the buttons they say that the scenes that i have in my file dosent exist.
How can i solve this?
Please help.</description>
		<content:encoded><![CDATA[<p>Hi, i have a menu in my fla file where i want to link to 4 diffrent scenes. I have used this code:<br />
stop();b60.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);function mouseDownHandler1(event:MouseEvent):void {</p>
<p>gotoAndPlay(1, &#8220;Scen 1&#8243;);</p>
<p>}<br />
b70.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);function mouseDownHandler2(event:MouseEvent):void {</p>
<p>gotoAndPlay(1, &#8220;Scen 44&#8243;);</p>
<p>}<br />
b80.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);function mouseDownHandler3(event:MouseEvent):void {</p>
<p>gotoAndPlay(1, &#8220;Scen 45&#8243;);</p>
<p>}<br />
b90.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler4);function mouseDownHandler4(event:MouseEvent):void {</p>
<p>gotoAndPlay(1, &#8220;Scen 50&#8243;);</p>
<p>}</p>
<p>But it dosent work.<br />
The movieclip i have in the file dosent start when i add this code and if i click the buttons they say that the scenes that i have in my file dosent exist.<br />
How can i solve this?<br />
Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JaymanJohn</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-35056</link>
		<dc:creator>JaymanJohn</dc:creator>
		<pubDate>Thu, 26 Nov 2009 12:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-35056</guid>
		<description>from Malaysia with love!

thnks!</description>
		<content:encoded><![CDATA[<p>from Malaysia with love!</p>
<p>thnks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mwa</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-34969</link>
		<dc:creator>mwa</dc:creator>
		<pubDate>Wed, 25 Nov 2009 04:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-34969</guid>
		<description>HELP ME . . so i have transfered my flash file from my skool comp to my home one, both use Flash CS4 and action script 3 . . BUT . . when i transfer it onto my home Flash program it comes up with heaps off errors! and on the skool computer it was fine!

ALSO . . why cant it find my scene when i know its in the same file?
eg: 

ArgumentError: Error #2108: Scene CoverPage was not found.
	at flash.display::MovieClip/gotoAndPlay()
	at CLICKTOVIEW_MapOfAus_fla::MainTimeline/enterBookPage()

I really need help . . 
anything would be good right now!
Thanks,
mwa</description>
		<content:encoded><![CDATA[<p>HELP ME . . so i have transfered my flash file from my skool comp to my home one, both use Flash CS4 and action script 3 . . BUT . . when i transfer it onto my home Flash program it comes up with heaps off errors! and on the skool computer it was fine!</p>
<p>ALSO . . why cant it find my scene when i know its in the same file?<br />
eg: </p>
<p>ArgumentError: Error #2108: Scene CoverPage was not found.<br />
	at flash.display::MovieClip/gotoAndPlay()<br />
	at CLICKTOVIEW_MapOfAus_fla::MainTimeline/enterBookPage()</p>
<p>I really need help . .<br />
anything would be good right now!<br />
Thanks,<br />
mwa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: josue</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-33999</link>
		<dc:creator>josue</dc:creator>
		<pubDate>Thu, 05 Nov 2009 21:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-33999</guid>
		<description>ok iam working on cs4 with 3 frames iam using this 
stop();
ONE.addEventListener(MouseEvent.CLICK, clickButtonHandler);
function clickButtonHandler(event:MouseEvent):void {
    gotoAndStop(2);
}
TWO.addEventListener(MouseEvent.CLICK, clickButtonHandler2);
function clickButtonHandler(event:MouseEvent):void {
    gotoAndStop(3);
}

for my buttons it goes to the next frame but then it doesn't want to go to the third frame I GET 
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at project6_Scene1_fla::MainTimeline/frame1()</description>
		<content:encoded><![CDATA[<p>ok iam working on cs4 with 3 frames iam using this<br />
stop();<br />
ONE.addEventListener(MouseEvent.CLICK, clickButtonHandler);<br />
function clickButtonHandler(event:MouseEvent):void {<br />
    gotoAndStop(2);<br />
}<br />
TWO.addEventListener(MouseEvent.CLICK, clickButtonHandler2);<br />
function clickButtonHandler(event:MouseEvent):void {<br />
    gotoAndStop(3);<br />
}</p>
<p>for my buttons it goes to the next frame but then it doesn&#8217;t want to go to the third frame I GET<br />
TypeError: Error #1009: Cannot access a property or method of a null object reference.<br />
	at project6_Scene1_fla::MainTimeline/frame1()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karbo13</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-33810</link>
		<dc:creator>Karbo13</dc:creator>
		<pubDate>Mon, 02 Nov 2009 01:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-33810</guid>
		<description>Just an observation:

In your file to download (buttons-scenes.fla), I got a error, the buttom in frame 5 in monkeyScene has same instance name and same function name, then I change both names and put my own buttoms. Now all is OK.

Thank you very much for this tutorial.

A greeting from Guatemala, City.</description>
		<content:encoded><![CDATA[<p>Just an observation:</p>
<p>In your file to download (buttons-scenes.fla), I got a error, the buttom in frame 5 in monkeyScene has same instance name and same function name, then I change both names and put my own buttoms. Now all is OK.</p>
<p>Thank you very much for this tutorial.</p>
<p>A greeting from Guatemala, City.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-32330</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 29 Sep 2009 18:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://flashthusiast.com/2008/07/31/creating-buttons-that-link-to-different-scenes-using-actionscript-30/#comment-32330</guid>
		<description>Hey I'm getting the TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at DSWEBSITE2_ABOUT_fla::MainTimeline/frame26()

I don't really understand why... the buttons on the main page work fine.... but on the 2nd page, "About" page... none of the buttons work and I get the error once when the action script frame comes up....

stop();home_btn.addEventListener(MouseEvent.MOUSE_DOWN, 
mouseDownHandler5);function 
mouseDownHandler5(event:MouseEvent):void {
 
gotoAndStop(98,"HOME");
 
}

projects_btn.addEventListener(MouseEvent.MOUSE_DOWN, 
mouseDownHandler6);function 
mouseDownHandler6(event:MouseEvent):void {
 
gotoAndPlay(1,"PROJECTS");
 
}

video_btn.addEventListener(MouseEvent.MOUSE_DOWN, 
mouseDownHandler7);function 
mouseDownHandler7(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.vimeo.com/6039176"));
}

contact_btn.addEventListener(MouseEvent.MOUSE_DOWN, 
mouseDownHandler8);function 
mouseDownHandler8(event:MouseEvent):void {
 
gotoAndPlay(1,"CONTACTS");
 
}

thats the code I'm using of the page that doesn't work... each one is segmented into scenes... I don't get it... ugh... must kill... or get helped.... please help!</description>
		<content:encoded><![CDATA[<p>Hey I&#8217;m getting the TypeError: Error #1009: Cannot access a property or method of a null object reference.<br />
	at DSWEBSITE2_ABOUT_fla::MainTimeline/frame26()</p>
<p>I don&#8217;t really understand why&#8230; the buttons on the main page work fine&#8230;. but on the 2nd page, &#8220;About&#8221; page&#8230; none of the buttons work and I get the error once when the action script frame comes up&#8230;.</p>
<p>stop();home_btn.addEventListener(MouseEvent.MOUSE_DOWN,<br />
mouseDownHandler5);function<br />
mouseDownHandler5(event:MouseEvent):void {</p>
<p>gotoAndStop(98,&#8221;HOME&#8221;);</p>
<p>}</p>
<p>projects_btn.addEventListener(MouseEvent.MOUSE_DOWN,<br />
mouseDownHandler6);function<br />
mouseDownHandler6(event:MouseEvent):void {</p>
<p>gotoAndPlay(1,&#8221;PROJECTS&#8221;);</p>
<p>}</p>
<p>video_btn.addEventListener(MouseEvent.MOUSE_DOWN,<br />
mouseDownHandler7);function<br />
mouseDownHandler7(event:MouseEvent):void {<br />
navigateToURL(new URLRequest(&#8221;http://www.vimeo.com/6039176&#8243;));<br />
}</p>
<p>contact_btn.addEventListener(MouseEvent.MOUSE_DOWN,<br />
mouseDownHandler8);function<br />
mouseDownHandler8(event:MouseEvent):void {</p>
<p>gotoAndPlay(1,&#8221;CONTACTS&#8221;);</p>
<p>}</p>
<p>thats the code I&#8217;m using of the page that doesn&#8217;t work&#8230; each one is segmented into scenes&#8230; I don&#8217;t get it&#8230; ugh&#8230; must kill&#8230; or get helped&#8230;. please help!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
