# External swf transition problems

**URL:** <https://forum.kirupa.com/t/external-swf-transition-problems/65107>\
**Category:** Uncategorized\
**Created:** [September 23, 2004, 2:53am UTC](https://forum.kirupa.com/t/external-swf-transition-problems/65107 "2004-09-23T02:53:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sirulian](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@sirulian](https://forum.kirupa.com/u/sirulian)\
**Post date:** [September 23, 2004, 2:53am UTC](https://forum.kirupa.com/t/external-swf-transition-problems/65107/1 "2004-09-23T02:53:31Z")

</div>

i’ve followed the transitions tutorial :  
[http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm)

but ive got one problem.  
for some reason.  
when i click on a button on the main timeline,  
it keeps playing the same swf over and over.  
it will only play main.swf,  
no matter what button i press…

i click,  
it plays the outro transition for the existing clip (main.swf)  
but then, when the next clip should be loading,  
it just restarts main.swf.

im thinking…maybe it could have something to do with  
the preloader on the next swf?  
im …soo incredibly lost.

help…  
please?  
;(

…thanks…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 3:31am UTC](https://forum.kirupa.com/t/external-swf-transition-problems/65107/2 "2004-09-23T03:31:11Z")

</div>

Make sure your code for each button has a different code.

On first button:

```auto
on (release) {
	if (_root.currMovie == undefined) {
		_root.currMovie ="1";
		container.loadMovie ("1.swf");
	}
	else if (_root.currMovie != "1") {
		if (container._currentframe >= container.midframe ) {
			_root.currMovie ="1";
			container.play();
		}
	}
}

```

On second button:

```auto
on (release) {
	if (_root.currMovie == undefined) {
		_root.currMovie ="2";
		container.loadMovie ("2.swf");
	}
	else if (_root.currMovie != "2") {
		if (container._currentframe >= container.midframe ) {
			_root.currMovie ="2";
			container.play();
		}
	}
}

```

and so on…obviously change each value given to \_root.currMovie and the name of the swf to load. Hope that helps.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 9:53pm UTC](https://forum.kirupa.com/t/external-swf-transition-problems/65107/3 "2004-09-23T21:53:08Z")

</div>

hmm okay.  
that isn’t the problem.  
I’ve penta checked that code. ( is that even a word?)

the problem is the preloader i guess.  
is there a special preloader code necessary for transitions?

hmm…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 9:59pm UTC](https://forum.kirupa.com/t/external-swf-transition-problems/65107/4 "2004-09-23T21:59:08Z")

</div>

I wouldn’t think that it has anything to do with the preloader but are you putting the preloader in the individual swfs? I haven’t tried a preloader with the transitions but everyone says that is the best way to handle them. If not, post your fla.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 23, 2004, 10:56pm UTC](https://forum.kirupa.com/t/external-swf-transition-problems/65107/5 "2004-09-23T22:56:11Z")

</div>

oh wee.  
i fixed the preloader.  
haha it works fine now.

NOW.  
the problem is.  
im using this code:

## – \_root.currMovie = “main”; container.loadMovie(\_root.currMovie+".swf");

to auto-load main.swf  
when the main index animation is run.  
but the problem is,  
for some reason,  
now the buttons dont work.

?!  
o m g?!
