External swf transition problems

i’ve followed the transitions tutorial :
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…

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

On first button:

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:

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.

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…

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.

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?!