# on(press){gotoAndPlay(Scene);}... from button within a mC?

**URL:** <https://forum.kirupa.com/t/on-press-gotoandplay-scene-from-button-within-a-mc/89522>\
**Category:** Uncategorized\
**Created:** [May 9, 2005, 11:10am UTC](https://forum.kirupa.com/t/on-press-gotoandplay-scene-from-button-within-a-mc/89522 "2005-05-09T11:10:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MetteBB](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@MetteBB](https://forum.kirupa.com/u/MetteBB)\
**Post date:** [May 9, 2005, 11:10am UTC](https://forum.kirupa.com/t/on-press-gotoandplay-scene-from-button-within-a-mc/89522/1 "2005-05-09T11:10:06Z")

</div>

[font=Trebuchet MS]Hiya…[/font]

[font=Trebuchet MS]Is it possible to get a button inside a cM to link to a new scene?[/font]

[font=Trebuchet MS]I have a mC containint three buttons. Each of these buttons I want to open up a different scene. So I have the following script: [/font][font=Arial][color=black]

```auto
[/color][/font]
[font=Arial][color=black]on(press){[/color][/font]
[font=Arial][color=black]gotoAndPlay (scene2);[/color][/font]
[font=Trebuchet MS][font=Arial][color=black]}

```

[/color][/font] [/font]

[font=Trebuchet MS]But it doesnt seem to be working. Am I doing something wrong ? (wouldn’t be surprised)[/font]

Please if you could help me that would be great.

Ta
