# Help: Transition between external SWFs

**URL:** https://forum.kirupa.com/t/help-transition-between-external-swfs/186609
**Category:** flash
**Created:** [April 22, 2006, 9:22pm UTC](https://forum.kirupa.com/t/help-transition-between-external-swfs/186609 "2006-04-22T21:22:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![firestorm2117](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@firestorm2117](https://forum.kirupa.com/u/firestorm2117)
#### Post date: [April 22, 2006, 9:22pm UTC](https://forum.kirupa.com/t/help-transition-between-external-swfs/186609/1 "2006-04-22T21:22:59Z")

</div>

Hello,

I’m creating my portfolio using the “Transition between External SWFs” tutorial and hit a major snag: the buttons don’t work.

My problem is similar to [this one](http://www.kirupa.com/forum/showthread.php?t=202613&highlight=external+swf+buttons), posted a while ago. I created my buttons using the “Complex Rollover/out” tutorial, so my buttons are actually movie clips.

The code that calls the external SWF automatically once the page loads works just fine. My test SWF loads, no problem. But when I click on my buttons, nothing happens.

At first I thought what I had to do was put the button code inside the movieclip, at the end of the roll-over actionscript like so:

```auto
stop();
this.onEnterFrame = function() {
    if (rewind == true) {
        prevFrame();
    }
};
this.onRollOver = function() {
    rewind = false;
    play();
};
this.onRollOut = function() {
    rewind = true;
};

this.onRelease = function() {
    if (_root.currMovie == undefined) {
        _root.currMovie = "test";
        _root.container.loadMovie("test.swf");
    } else if (_root.currMovie != "test") {
        if (_root.container._currentframe>=_root.container.midframe) {
            _root.currMovie = "test";
            _root.container.play();
        }
    }
};

```

But there was no change (with or without the “\_root” in front of “container”). So then, I placed the code on a different actionscript layer and frame on the main timeline, and added

```auto
button_1.onRelease = function() {

```

to the top (without the \_root). No go.

For kicks, I decided to download the source file from the tutorial and paste one of the buttons from that into my own SWF to see if it’d work, and hopefully confirm that my buttons were the problem. Unfortunatly, that button didn’t work either. :-/

So, I figure there’s something else in my main SWF that is conflicting with the buttons’ code, but I have no idea what it could be, since it’s just a bunch of masks and tweens that form an intro for the navigation.

Here is a zip file containing the FLAs - [_click_](http://www.davidcoacci.com/portfoliotest/nav.zip)

Any help would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![theflash](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/theflash/32/1221_2.png) [@theflash](https://forum.kirupa.com/u/theflash)
#### Post date: [April 24, 2006, 8:54am UTC](https://forum.kirupa.com/t/help-transition-between-external-swfs/186609/2 "2006-04-24T08:54:54Z")

</div>

I feel you have a logic problem in button events… put trace() in onRelease events and you will know…
