# Trouble with Scenes

**URL:** <https://forum.kirupa.com/t/trouble-with-scenes/255097>\
**Category:** Uncategorized\
**Created:** [March 19, 2008, 1:19am UTC](https://forum.kirupa.com/t/trouble-with-scenes/255097 "2008-03-19T01:19:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tailz](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tailz/32/7262_2.png) [@tailz](https://forum.kirupa.com/u/tailz)\
**Post date:** [March 19, 2008, 1:19am UTC](https://forum.kirupa.com/t/trouble-with-scenes/255097/1 "2008-03-19T01:19:33Z")

</div>

I’m having trouble with scenes, can anyone help me out?

In my movie I have three scenes, each called: scene1, scene2, and scene3.

In each scene I have the main sequences, with the first frame of each sequence given a label: act1, act2, and act3.

Now I have a button that I want to go to a spacific scene and a frame label in the scene when clicked.

This button (label: buttonNav) should go to scene2, and start playing from frame label act2.

[COLOR=blue]function onNavButtonClick(evt:MouseEvent):void {[/COLOR]  
[COLOR=blue]gotoAndPlay(“frame:act2, scene:scene2”);[/COLOR]  
[COLOR=blue]}[/COLOR]  
[COLOR=blue]buttonNav.addEventListener(MouseEvent.CLICK,onNavButtonClick);[/COLOR]

[COLOR=black]Can anyone point out where I have gone wrong?[/COLOR]
