# prevScene(); & nextScene(); does not work

**URL:** <https://forum.kirupa.com/t/prevscene-nextscene-does-not-work/188975>\
**Category:** flash\
**Created:** [May 12, 2006, 8:20am UTC](https://forum.kirupa.com/t/prevscene-nextscene-does-not-work/188975 "2006-05-12T08:20:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thesleuth](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@thesleuth](https://forum.kirupa.com/u/thesleuth)\
**Post date:** [May 12, 2006, 8:20am UTC](https://forum.kirupa.com/t/prevscene-nextscene-does-not-work/188975/1 "2006-05-12T08:20:38Z")

</div>

In my fla, I have 2 scenes - Begin and Grass. I have 2 buttons in a movie clip and I intend to put it in every scene. I tried using

```auto
on(release, keyPress "<Right>"){ 
    nextScene();
}

```

but it does not work. What code should I use or what should I do?
