Transition between external SWF´s

I´m created a thingy that loads menu.swf in a container-movieclip in main.swf with cool transitions, of course. Now the problem is that I don´t know how to control the buttons of the menu.swf so, that the topics are loaded to the same container-movieclip with the menu.swf (menu first transiting away).

http://www.kirupa.com/developer/mx2004/transitions.htm won´t help much, because the buttons are not inside the container and I´m a real noob with actionscript.

Can someone help me?

can you just take the button out of the container? or make another container inside the container and load the content there?

Or you could do something like this. Put this code in one of your frames on your root timeline.



container.buttoninstancename.onRelease = function() {

if (_root.currMovie == undefined) {

_root.currMovie = "main";
container.loadMovie("main.swf");
} else if (_root.currMovie != "main") {
if (container._currentframe >= container.midframe) {

_root.currMovie = "main";
container.play();

}

}

}