# Transitions Between External SWFs

**URL:** <https://forum.kirupa.com/t/transitions-between-external-swfs/147507>\
**Category:** Uncategorized\
**Created:** [May 11, 2005, 9:43am UTC](https://forum.kirupa.com/t/transitions-between-external-swfs/147507 "2005-05-11T09:43:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jusko](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jusko](https://forum.kirupa.com/u/jusko)\
**Post date:** [May 11, 2005, 9:43am UTC](https://forum.kirupa.com/t/transitions-between-external-swfs/147507/1 "2005-05-11T09:43:11Z")

</div>

Hey!!!  
I did this tutorial:  
[http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm)  
and everything worked perfectly!! but if I have the buttons in a externally loaded swf instead of having them in the main timeline, what code should i use???

this is the code if the buttons are in the main timeline:  
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(); } } } [font=Verdana]any thoughts on this???[/font]  
[font=Verdana]thanks a lot!!![/font]  
[font=Verdana]cheers[/font]
