# Back button that takes you to the last Scene visited

**URL:** <https://forum.kirupa.com/t/back-button-that-takes-you-to-the-last-scene-visited/93303>\
**Category:** Uncategorized\
**Created:** [October 28, 2003, 8:32pm UTC](https://forum.kirupa.com/t/back-button-that-takes-you-to-the-last-scene-visited/93303 "2003-10-28T20:32:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cobaltblue](https://avatars.discourse-cdn.com/v4/letter/c/a87d85/32.png) [@cobaltblue](https://forum.kirupa.com/u/cobaltblue)\
**Post date:** [October 28, 2003, 8:32pm UTC](https://forum.kirupa.com/t/back-button-that-takes-you-to-the-last-scene-visited/93303/1 "2003-10-28T20:32:18Z")

</div>

Hello Kirupa forum,

First off, i just want to say that I’m pretty much a newbie when it comes to Flash MX ActionScript.

Okay, here here’s my situation…

I just created a Flash MX document with 10 scenes.

I have included a menu that will take the user to any of the 10 scenes. Moreover, in each of these 10 scenes, I added a BACK, NEXT, and HOME button for navigation purposes.

My problem is this…

I was at ‘Scene 1’ and I wanted to jump to ‘Scene 7’, so I go to my menu and clicked on the button that would take me to ‘Scene 7’.

Okay…now that I’m at ‘Scene 7’ I want to go back to ‘Scene 1’. BUT THIS TIME I WANT TO USE MY NAVIGATION BUTTONS.

So I press the BACK button from ‘Scene 7’ and it takes me to ‘Scene 6’. (I already know why it took me to ‘Scene 6’ instead of ‘Scene 1’.) BUT, I WANTED IT TO GO BACK TO THE LAST SCENE VISITED!

So my question is this…

How do you get FLASH MX to remember which Scene you last visited?

Is there a script that I must add to force it to remember the last scene visited?

thank you Kirupaforum,  
cobaltblue
