# Transitions Between External SWFs Problem

**URL:** <https://forum.kirupa.com/t/transitions-between-external-swfs-problem/152247>\
**Category:** flash\
**Created:** [June 22, 2005, 11:16am UTC](https://forum.kirupa.com/t/transitions-between-external-swfs-problem/152247 "2005-06-22T11:16:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keljnr](https://avatars.discourse-cdn.com/v4/letter/k/e8c25b/32.png) [@keljnr](https://forum.kirupa.com/u/keljnr)\
**Post date:** [June 22, 2005, 11:16am UTC](https://forum.kirupa.com/t/transitions-between-external-swfs-problem/152247/1 "2005-06-22T11:16:29Z")

</div>

Ive been going through some of the great tutorials on Kirupa to try and make a flash site of my own.

Unfortunatly, ive hit a slight snag, and wondered if anyone could help me.

Ive created buttons simular to [Complex Button RollOver/RollOut Effects](http://www.kirupa.com/developer/mx2004/button_effect.htm) and my current script is (inside a mc):

[INDENT]stop();  
this.onEnterFrame = function() {  
if (rewind == true) {  
prevFrame();  
}  
};  
this.onRollOver = function() {  
rewind = false;  
\_root.navOver.gotoAndStop(1);  
play();  
};  
this.onRollOut = function() {  
rewind = true;  
};  
this.onRelease = function() {  
getURL(“[http://www.kirupa.com](http://www.kirupa.com)”, “\_blank”);  
};[/INDENT]

Im wanting to insert the following code on the ‘onRelease’ function above which is taken from the [Transitions Between Extrnal SWFs](http://www.kirupa.com/developer/mx2004/transitions2.htm) tutorial.:

on (release) {  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “understanding”;  
container.loadMovie(“understanding.swf”);  
} else if (\_root.currMovie != “understanding”) {  
if (container.\_currentframe \>= container.midframe) {  
\_root.currMovie = “understanding”;  
container.play();  
}  
}  
}

Does anyone know a way to adapt this??

Its the last part of my site that needs doing…please help.

Please.
