# SWF transitions

**URL:** https://forum.kirupa.com/t/swf-transitions/148731
**Category:** flash
**Created:** [May 23, 2005, 3:46am UTC](https://forum.kirupa.com/t/swf-transitions/148731 "2005-05-23T03:46:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jgreenwood](https://avatars.discourse-cdn.com/v4/letter/j/2bfe46/32.png) [@jgreenwood](https://forum.kirupa.com/u/jgreenwood)
#### Post date: [May 23, 2005, 3:46am UTC](https://forum.kirupa.com/t/swf-transitions/148731/1 "2005-05-23T03:46:57Z")

</div>

I am trying to make it so my externally loaded SWF’s transition when loaded/unloaded. Here is the script I am using on my buttons:

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

The problem is my button is not on the main timeline. Instead it is embedded in a movie clip and so I have to denote it’s path to the container movie clip. Here is the layout of my movie clips starting from the root.

root \> navigation \> port roll \> port sub-in this movie is where my buttons are located and my container clip is on the main timeline. Also do I have to denote its path wherever the word container appears? Thanks for any help.
