Transition between external swf's

Hello i was learning the tutorial http://www.kirupa.com/developer/mx2004/transitions.htm and i was trying a thing that dont work :frowning:
I have a swf called index.swf. and load another external swf (home.swf)
That home.swf have 4 buttons.

I have another swf called movie2.swf with an MC called [COLOR=red]movie2_MC[/COLOR] with 4 frames. (every frame have an “stop”)
Now, I want when i press the buttons on the home.swf call the movie2.swf, and go to the especific frame of the MC ([COLOR=#ff0000]movie2_MC)[/COLOR] , like this:

Button1 —> frame 1 (in movie2_MC)
Button2 —> frame 2 (in movie2_MC)
Button3 —> frame 3 (in movie2_MC)
Button4 —> frame 4 (in movie2_MC)

But doing the in and out animation if is possible…

i try this for this button but doesn’t work :crying:

on (release) {
 if (_root.currMovie == undefined) {
  _root.currMovie = "home";
  _root.container.[COLOR=#ff0000]movie2_MC.[/COLOR]loadMovie("home.swf");
 } else if (_root.currMovie != "home") {
  if (_root.container.[COLOR=#ff0000]movie2_MC.[/COLOR]_currentframe >= container.[COLOR=#ff0000]movie2_MC.[/COLOR]midframe) {
   _root.currMovie = "home";
   _root.container.[COLOR=#ff0000]movie2_MC.[/COLOR]gotoAndPlay(1);
  }
 }
}