# Simple button that goes to new scene

**URL:** <https://forum.kirupa.com/t/simple-button-that-goes-to-new-scene/263733>\
**Category:** Uncategorized\
**Created:** [June 18, 2008, 7:29pm UTC](https://forum.kirupa.com/t/simple-button-that-goes-to-new-scene/263733 "2008-06-18T19:29:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djeustice](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@djeustice](https://forum.kirupa.com/u/djeustice)\
**Post date:** [June 18, 2008, 7:29pm UTC](https://forum.kirupa.com/t/simple-button-that-goes-to-new-scene/263733/1 "2008-06-18T19:29:05Z")

</div>

I just started using AS 3.0 and am getting killed. I have a button (nxtBTN) in my main scene and want it to go to scene 1\_A when clicked. This is what I have, based on a turorial I was looking at:

stop();

nxtBTN.addEventListener(MouseEvent.CLICK,uniquefunctionname);  
function uniquefunctionname(evt:MouseEvent):void {  
gotoAndPlay(1,‘1\_A’);  
}

---

<div class="post-metadata">

**Author:** ![DiamondDog](https://avatars.discourse-cdn.com/v4/letter/d/74df32/32.png) [@DiamondDog](https://forum.kirupa.com/u/DiamondDog)\
**Post date:** [June 18, 2008, 7:49pm UTC](https://forum.kirupa.com/t/simple-button-that-goes-to-new-scene/263733/2 "2008-06-18T19:49:04Z")

</div>

That should work.

Any chance you can post your .fla file so we can see what’s happening?

Cheers.

---

<div class="post-metadata">

**Author:** ![djeustice](https://avatars.discourse-cdn.com/v4/letter/d/2acd7d/32.png) [@djeustice](https://forum.kirupa.com/u/djeustice)\
**Post date:** [June 18, 2008, 8:02pm UTC](https://forum.kirupa.com/t/simple-button-that-goes-to-new-scene/263733/3 "2008-06-18T20:02:06Z")

</div>

[quote=DiamondDog;2345134]That should work.

Any chance you can post your .fla file so we can see what’s happening?

Cheers.[/quote]

I re-created the button and the code worked.

Thanks for your reply though.

-D
