Need some help with transitions

Hello I am trying to build a transition just like this I kinda got working but I need some pros to help me out I had it working with these actions: I load the first swf:

  1. container1.loadMovie(“section1.swf”);

Then my button actions should be:

on (release) {
container1.loadMovie(“section1.swf”);
container1.swapDepths(1);
}

on (release) {
container2.loadMovie(“section2.swf”);
container2.swapDepths(1);
}

on (release) {
container3.loadMovie(“section3.swf”);
container3.swapDepths(1);
}

and so on…

The strange things happen because when I set a mc to a new Depth, the previous mc goes back to its original stacking order which may be under another mc, so it works only in one direction

so now I am trying this:
which=1

on (release) {
this[“container”+which].loadMovie(“section1.swf”);
this[“container”+which].swapDepths(1);
if (which == 1) {
which = 2;
} else {
which = 1;
}
}
I hope this make sense. Here is my new file sorry about the sloppy file:)

Do you just want to replace the previous swf with the new one?

Yeah but I want to have it mask over the last clip. So it loads over the prev clip.

Thanks

untested, but I would imagine you could declare a variable “i” as 1, and then use this on your buttons:

on (release) {
i++
container1.loadMovie(“section1.swf”);
container1.swapDepths(i);
}

Thanks Adam14,

I am moron, how do you set the var i as 1, and where do I put it? lol

Thanks

in your first frame put this:

i=1

that decalres the variable “i” as “1”

Ok I tried that and it so close:) But when you go out of order some happens wiith stack?

Take a look