# Forward/Back button script help

**URL:** <https://forum.kirupa.com/t/forward-back-button-script-help/52068>\
**Category:** flash\
**Created:** [May 19, 2004, 5:13pm UTC](https://forum.kirupa.com/t/forward-back-button-script-help/52068 "2004-05-19T17:13:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lokjah](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lokjah/32/444_2.png) [@lokjah](https://forum.kirupa.com/u/lokjah)\
**Post date:** [May 19, 2004, 5:13pm UTC](https://forum.kirupa.com/t/forward-back-button-script-help/52068/1 "2004-05-19T17:13:22Z")

</div>

Hi There, im venturing into some un explored territory for myself and could really use some direction on this script im writing…

the basic idea is i have a forward button and a back button… I have 3 swf’s that i want to load/unload with these buttons…

```auto

on (press) {
	loadMovieNum("scene_1.swf", 1);

if (loadMovieNum == "scene_1.swf") {
	loadMovieNum("scene_2.swf", 1);
	}
	
	else{
		loadMovieNum("scene_3.swf", 1);
	}

}

```

this is what ive started with for the forward button… as it is now when i click the button it automatically executes the else and loads scene\_3.swf  
so i know i have something wrong… the idea is that if the viewer is on scene\_1.swf hitting forward will load scene\_2.swf, if they are on scene\_3.swf nothing should happen when they click it as (at this time i only have 3 swfs available, but eventually i will have 8 ) of course i would be using this as well on the back button…

im using mx regular not 2004…

thanks alot…

løk
