# External swf transitions not loading right

**URL:** <https://forum.kirupa.com/t/external-swf-transitions-not-loading-right/145835>\
**Category:** Uncategorized\
**Created:** [April 26, 2005, 8:46am UTC](https://forum.kirupa.com/t/external-swf-transitions-not-loading-right/145835 "2005-04-26T08:46:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cybereaper](https://avatars.discourse-cdn.com/v4/letter/c/a587f6/32.png) [@cybereaper](https://forum.kirupa.com/u/cybereaper)\
**Post date:** [April 26, 2005, 8:46am UTC](https://forum.kirupa.com/t/external-swf-transitions-not-loading-right/145835/1 "2005-04-26T08:46:37Z")

</div>

okay, I put my sight up for review the other day:  
[Domain of the Cybereaper](http://home.bendcable.com/fss/index.htm) once you get past allthat intro crud to the main page:  
I got lots o suggestions, 1 was for smoother transitions… so I am trying…  
my mc architecture on the main swf is:  
\*\_root.main\_mc.empty\_mc \* _[the ‘container’ for loading external swfs]_  
Using the kirupa tutorial (and I searched the forums to find an answer, but so many and nuthin seemed 2 fit)- In each external swf, frame 1 reads:

```auto
midframe=##;

```

the midframe simply reads:

```auto
stop();

```

the final frame reads:

```auto
_root.main_mc.empty2.loadMovie(_root.currMovie+".swf");

```

Then in the main movie clip, frame 1 reads:

```auto
_root.currMovie = "reaperhome";
container.loadMovie(_root.currMovie+".swf");

```

then, the architecture for the buttons is:  
_\_root.main\_mc.button\_mc_  
Each button has the following code or similar code for different mc’s:

```auto
on (release) { 
if (_root.currMovie == undefined) { 
_root.currMovie = "theories"; 
_root.main_mc.empty.loadMovie("theories.swf"); 
} else if (_root.currMovie != "theories") { 
if (_root.main_mc.empty._currentframe >= _root.main_mc.empty.midframe) { 
_root.currMovie = "theories"; 
_root.main_mc.empty.play(); 
} 
} 
} 
on(release) {
	gotoAndStop(5);
}

```

The above code, according to the tutorial should examine the mc loaded, and decide if it needs to load and/or unload. And, it is kinda doing this/kinda not. If you go to my web site you will see the exact problems I am discussing.  
It appears as if it is loading and reloading swf’s on top of each other…  
The _gotoandStop_ command changes the frame within the \*button\_mc \* to allow me to highlight the currently selected button and topic.  
I can’t upload the code right now, file is too big and I am too tired for winzip. Hopefully I have listed enough info, if u think the code would allow u to solve it, let me now, I’ll compress it all and send it. Thanks in advanced for the help.
