# Transition not working properly

**URL:** <https://forum.kirupa.com/t/transition-not-working-properly/188132>\
**Category:** Uncategorized\
**Created:** [May 4, 2006, 7:22pm UTC](https://forum.kirupa.com/t/transition-not-working-properly/188132 "2006-05-04T19:22:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Padgett](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@Matthew\_Padgett](https://forum.kirupa.com/u/Matthew_Padgett)\
**Post date:** [May 4, 2006, 7:22pm UTC](https://forum.kirupa.com/t/transition-not-working-properly/188132/1 "2006-05-04T19:22:25Z")

</div>

help…

the following lines of code are in the 1st frame of the main stage…

```auto
stop();
_root.currMovie = "home";
function firstRun() {
        clearInterval(eightSeconds);
        container.loadMovie(_root.currMovie+".swf");
}
eightSeconds = setInterval(firstRun, 8000);

```

This line of code is in on a button in a Movie clip on the main stage

```auto
on (rollOver) {
	_parent.btntxt_mc.gotoAndPlay("text_1");
}
on (rollOut) {
	_parent.btntxt_mc.gotoAndPlay("back_1");
}
on (release) {
	if (_root.currMovie == undefined) {
		_root.currMovie = "designfolio";
		_root.container.loadMovie("designfolio.swf");
	} else if (_root.currMovie != "designfolio") {
		if (_root.container._currentframe >= container.midframe) {
			_root.currMovie = "designfolio";
			_root.container.play();
		}
	}
}

```

if the file designfolio.swf is situated in the same folder as the main stage swf, then why does it continue to open home.swf after its transition.?? its the same with the other 4 buttons which should open seperate swf’s - they all open the file ‘home.swf’ help!!
