# Problem with Transitions Between External SWFs tutorial

**URL:** https://forum.kirupa.com/t/problem-with-transitions-between-external-swfs-tutorial/192620
**Category:** flash
**Created:** [June 29, 2006, 8:12pm UTC](https://forum.kirupa.com/t/problem-with-transitions-between-external-swfs-tutorial/192620 "2006-06-29T20:12:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lucid212](https://avatars.discourse-cdn.com/v4/letter/l/dc4da7/32.png) [@lucid212](https://forum.kirupa.com/u/lucid212)
#### Post date: [June 29, 2006, 8:12pm UTC](https://forum.kirupa.com/t/problem-with-transitions-between-external-swfs-tutorial/192620/1 "2006-06-29T20:12:54Z")

</div>

Hi Kirupa,

this tutorial working fine, but when i make a complex button rollover/rollout effect with  
this code

```auto
 //stop(); this.onEnterFrame = function(){ if(rewind == true){ prevFrame(); } } this.onRollOver = function(){ rewind = false; play(); } this.onRollOut = function(){ rewind = true; } this.onRelease = function(){ getURL("http://www.kirupa.com","_blank"); } 

```

i remove the last onRelease function and i’m using the code in the external swf transation

```auto
 on (release) { 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(); } } } 

```

i’m using this code over all button as tutorial but it’s not working.

any help plz

```
                                                                many thanks to all
```
