Transition between swfs

Using the tutorial found here on kirupa on loading external swfs and transition between them…

I am trying to do the transitons between loaded external swfs… using this code on a button in the main navigation swf…

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = “aboutus”;
container.loadMovie(“aboutus.swf”);
} else if (_root.currMovie != “aboutus”) {
if (container._currentframe>=container.midframe) {
_root.currMovie = “aboutus”;
container.play();
}
}
}

I have successfully made it work, but only when this code is placed on a button on the main timeline- NOT nested inside an MC, withing another MC… Why is that? How can i put this code on a button which is nested twice inside an MC clip?-- my container. MC (the empty MC which i am loading the swf into) is placed on the main timeline, the first frame.

can someone help me ammend my code, so that i am able to nest the code inside a mc inside another mc, yet still target the container MC on the main timeline root.

thanks

I had the same problem when i did that tutorial. It seems like that script only works when placed on a button, but it wont work when placed on a Mc.

use _root on the container so do something like _root.container. Add the _root on all the container AS