# Transition between external SWF´s

**URL:** https://forum.kirupa.com/t/transition-between-external-swf-s/182771
**Category:** flash
**Created:** [March 21, 2006, 11:09am UTC](https://forum.kirupa.com/t/transition-between-external-swf-s/182771 "2006-03-21T11:09:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![O\_Hyes](https://avatars.discourse-cdn.com/v4/letter/o/c37758/32.png) [@O\_Hyes](https://forum.kirupa.com/u/O_Hyes)
#### Post date: [March 21, 2006, 11:09am UTC](https://forum.kirupa.com/t/transition-between-external-swf-s/182771/1 "2006-03-21T11:09:57Z")

</div>

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](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?

---

<div class="post-metadata">

### Author: ![SlowRoasted](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SlowRoasted](https://forum.kirupa.com/u/SlowRoasted)
#### Post date: [March 21, 2006, 3:45pm UTC](https://forum.kirupa.com/t/transition-between-external-swf-s/182771/2 "2006-03-21T15:45:39Z")

</div>

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

---

<div class="post-metadata">

### Author: ![SlowRoasted](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@SlowRoasted](https://forum.kirupa.com/u/SlowRoasted)
#### Post date: [March 21, 2006, 3:47pm UTC](https://forum.kirupa.com/t/transition-between-external-swf-s/182771/3 "2006-03-21T15:47:47Z")

</div>

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

```auto

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();

}

}

}

```
