# External SWF problem

**URL:** <https://forum.kirupa.com/t/external-swf-problem/113068>\
**Category:** Uncategorized\
**Created:** [June 14, 2004, 6:21pm UTC](https://forum.kirupa.com/t/external-swf-problem/113068 "2004-06-14T18:21:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![afmaury](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@afmaury](https://forum.kirupa.com/u/afmaury)\
**Post date:** [June 14, 2004, 6:21pm UTC](https://forum.kirupa.com/t/external-swf-problem/113068/1 "2004-06-14T18:21:01Z")

</div>

I have been using the tutorial on transitions between external .swf files. I am now having some problems with rewriting some of the paths in the code found in that tutorial.

I have loaded an external swf (work.swf) into my main movie inside an empty movie clip. I then want to load another external swf (florida.swf) inside of the work movie. I am having trouble making the florida movie work inside of the work movie and the main movie. I believe that this is a path problem, but I cannot figure it out.

Here is the code from the tutorial that I am trying to adapt:  
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();}}}

Here is my attempt at rewriting the code:  
on (release) { if (\_root.currMovie == undefined) { \_root.container.work.container2.currMovie = “florida”;  
\_root.container.work.container2loadMovie(“main.swf”);  
} else if (\_root.currMovie != “main”) { if (container2.\_currentframe \>= container2.midframe) { \_root.currMovie = “main”; container.play();}}} I know there are problems here but am not sure what I need to do. Also, the buttons that are to load the 2nd external swf file DO show up on the main movie. Any help would be greatly appreciated.
