# Transition between external swf's

**URL:** https://forum.kirupa.com/t/transition-between-external-swfs/224232
**Category:** Uncategorized
**Created:** [April 30, 2007, 1:44pm UTC](https://forum.kirupa.com/t/transition-between-external-swfs/224232 "2007-04-30T13:44:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![RaMMa](https://avatars.discourse-cdn.com/v4/letter/r/ba9def/32.png) [@RaMMa](https://forum.kirupa.com/u/RaMMa)
#### Post date: [April 30, 2007, 1:44pm UTC](https://forum.kirupa.com/t/transition-between-external-swfs/224232/1 "2007-04-30T13:44:17Z")

</div>

Hello i was learning the tutorial [http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm) and i was trying a thing that dont work ☹  
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:

```auto
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);
  }
 }
}

```
