# Trying to make a simple GoToAndPlay Button

**URL:** <https://forum.kirupa.com/t/trying-to-make-a-simple-gotoandplay-button/249040>\
**Category:** flash\
**Created:** [January 14, 2008, 9:28pm UTC](https://forum.kirupa.com/t/trying-to-make-a-simple-gotoandplay-button/249040 "2008-01-14T21:28:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukeslytalker](https://avatars.discourse-cdn.com/v4/letter/l/bcef8e/32.png) [@lukeslytalker](https://forum.kirupa.com/u/lukeslytalker)\
**Post date:** [January 14, 2008, 9:28pm UTC](https://forum.kirupa.com/t/trying-to-make-a-simple-gotoandplay-button/249040/1 "2008-01-14T21:28:35Z")

</div>

So I just got Flash CS3 and was really digging it until I needed to make a simple, “GoToAndPlay”, button. I tried using AS2 as I was getting nothing but errors with AS3.

I’ve been looking all over the web as well as this site for just a piece of sample code. I figure if I know what CS3 wants to see I can write a compliant script.

All I want to do is the following.

**on (release) {  
gotoAndPlay(‘start’);  
}**

That’s all. I’ve made these same type of buttons hundreds of times, but obviously don’t know Actionscript 3 well enough yet. Can anyone shoot me a link or a strip of code? I really don’t know why this has turned out to be such a chore.

Thanks,

* * *

**Here’s the code I’m using now**

3sixty go.onRelease = function() {  
\_root.gotoAndPlay (“start”) }

* * *

**Here’s the error I’m getting**

1087: Syntax error: extra characters found after end of program.
