# Transition between external swfs Tutorial Tweak

**URL:** https://forum.kirupa.com/t/transition-between-external-swfs-tutorial-tweak/255687
**Category:** flash
**Created:** [March 25, 2008, 11:13pm UTC](https://forum.kirupa.com/t/transition-between-external-swfs-tutorial-tweak/255687 "2008-03-25T23:13:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ad\_rock](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@ad\_rock](https://forum.kirupa.com/u/ad_rock)
#### Post date: [March 25, 2008, 11:13pm UTC](https://forum.kirupa.com/t/transition-between-external-swfs-tutorial-tweak/255687/1 "2008-03-25T23:13:32Z")

</div>

My transition scripting is based off of the tutorial “Transitions Between External SWFs” by Voetsjoeba.

How can I make the main nav buttons change the current SWF being loaded if they are pressed during the intro phase before the current SWF reaches midframe? The problem I have is the user has to wait for the externally loading SWF to reach midframe before the main navigation buttons will work.

Here is the AtionScript on the main nav buttons.

[COLOR=DarkGreen]on (release) {

```
if (_root.currMovie == undefined) {

  _root.currMovie = "AboutUs";
  container.loadMovie("AboutUs.swf");
  } else if (_root.currMovie != "AboutUs") {
  if (container._currentframe &gt;= container.midframe) {

      _root.currMovie = "AboutUs";
      container.play();

    }
}

```

}

[COLOR=Black]Thanks in Advance.[/COLOR]  
[/COLOR]
