# \[Flash8\] Transistions SWF question

**URL:** <https://forum.kirupa.com/t/flash8-transistions-swf-question/201391>\
**Category:** Uncategorized\
**Created:** [September 20, 2006, 10:17pm UTC](https://forum.kirupa.com/t/flash8-transistions-swf-question/201391 "2006-09-20T22:17:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrAlucard](https://avatars.discourse-cdn.com/v4/letter/m/e5b9ba/32.png) [@MrAlucard](https://forum.kirupa.com/u/MrAlucard)\
**Post date:** [September 20, 2006, 10:17pm UTC](https://forum.kirupa.com/t/flash8-transistions-swf-question/201391/1 "2006-09-20T22:17:32Z")

</div>

Hey guys im having a bit of a problem with the Transmision tutorial. Oke here’s the deal.

I have a index.swf file, in this file I have movieclip called “screen” and this code,

```auto
screen.loadMovie("home.swf");

```

Okay, so it loads home.swf in it.  
On home.swf I have a button called “nederlands” when pressed it gives this code

```auto
on (release) { 
  if (_root.currMovie == undefined) { 
  _root.currMovie = "nederlands"; 
 _root.screen.loadMovie("nederlands.swf"); 
  } else if (_root.currMovie != "start") { 
  if (_root.screen._currentframe >= _root.screen.midframe) { 
  _root.currMovie = "nederlands"; 
 _root.screen.play(); 
} 
} 
} 

```

So as you can see it loads the file “nederlands.swf” into the \_root. (index.swf) and to the movieclip “screen”. Also this works.

But here is the problem. On the file “nederlands.swf” I have a few buttons that load external swf files and a movieclip called “screencontent”.  
Also I have this code. To load the file “start.swf” into the movieclip “screencontent”.

```auto
currMovie = "start"; 
screencontent.loadMovie(currMovie+".swf"); 

```

Back to the buttons, I dont want them to load into the \_root. (index file) but in the same swf as where the buttons are in. (in the movieclip “screencontent”. So I use this code.

```auto

on (release) { 
  if (currMovie._parent == undefined) { 
  currMovie._parent = "vakantie"; 
 screencontent.loadMovie("vakantie.swf"); 
  } else if (currMovie != "vakantie") { 
  if (screencontent._currentframe >= screencontent.midframe) { 
  currMovie._parent = "vakantie"; 
 screencontent.play(); 
} 
} 
}  

```

Okay here starts the problem. If I press a other button like “boekvakantie” or “contacteer” (or a other one). It does load the external SWF file with the intro and stuff but it does not play the outro of the original SWF file that is allready loaded.

I think the problem is in the code from the buttons.

```auto

on (release) { 
  if (currMovie._parent == undefined) { 
  currMovie._parent = "vakantie"; 
 screencontent.loadMovie("vakantie.swf"); 
  } else if (currMovie != "vakantie") { 
  if (screencontent._currentframe >= screencontent.midframe) { 
  currMovie._parent = "vakantie"; 
 screencontent.play(); 
} 
} 
} 

```

Because it just does not play from the variable “midframe” but it does play the external SWF file.

```auto
screencontent.loadMovie(_parent.currMovie+".swf");

```

This code is placed in the last frame of the loaded swf file. It makes sure that the other SWF files get in the right movieclip etc. But this does not mather sinds it does not get played.

Does anyone see the problem here?
