Transitions Between External SWFs

Hey!!!
I did this tutorial:
http://www.kirupa.com/developer/mx2004/transitions.htm
and everything worked perfectly!! but if I have the buttons in a externally loaded swf instead of having them in the main timeline, what code should i use???

this is the code if the buttons are in the main timeline:
on (release) { 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(); } } } [font=Verdana]any thoughts on this???[/font]
[font=Verdana]thanks a lot!!![/font]
[font=Verdana]cheers[/font]