# Confused Scene Change Error

**URL:** https://forum.kirupa.com/t/confused-scene-change-error/170336
**Category:** flash
**Created:** [November 24, 2005, 7:57pm UTC](https://forum.kirupa.com/t/confused-scene-change-error/170336 "2005-11-24T19:57:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Chavs](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@Chavs](https://forum.kirupa.com/u/Chavs)
#### Post date: [November 24, 2005, 7:57pm UTC](https://forum.kirupa.com/t/confused-scene-change-error/170336/1 "2005-11-24T19:57:08Z")

</div>

Hey folks,

I have a problem when linking two scenes together using this code:

3p\_bn.onRelease=function(){  
gotoAndPlay(“M2”, 1)  
}

3p\_bn is my button’s instance name  
M2 is my scene’s name  
1 being the first frame in that scene

Yet when I execute this program I get an error:

**Error** Scene=M1, layer=Actionscript, frame=1:Line 3: Syntax error.  
3p\_bn.onRelease=function(){

I dont understand, as I have exactly same code for my back button:

back\_bn.onRelease=function(){  
gotoAndPlay(“Mainscreen”, 1)  
}

Does anyone know what could be the problem?

Thanks in advance

Chavs
