# Having trouble with external SWFs on different levels

**URL:** https://forum.kirupa.com/t/having-trouble-with-external-swfs-on-different-levels/179596
**Category:** Uncategorized
**Created:** [February 21, 2006, 4:36pm UTC](https://forum.kirupa.com/t/having-trouble-with-external-swfs-on-different-levels/179596 "2006-02-21T16:36:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Damon\_77](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Damon\_77](https://forum.kirupa.com/u/Damon_77)
#### Post date: [February 21, 2006, 4:36pm UTC](https://forum.kirupa.com/t/having-trouble-with-external-swfs-on-different-levels/179596/1 "2006-02-21T16:36:32Z")

</div>

I have my main movie which loads each separate movie as an external SWF. In the main movie, when I click on a button (services), it loads an external SWF (“services\_2.swf”) movie into an empty container (container):

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

Once the “services\_2” loads, I click on a button (music videos) within the “services\_2” movie:

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

At this point it doesn’t load the next movie “Music\_Videos”  
When I publish and preview “services\_2” by itslef, and click on Music Videos, it loads it. But when i publsih my main timeline, click on “services\_2” it loads that SWF, but won’t load the next one linked to “Music\_Videos.”

There’s something wrong with my code somewhere, but I can’t seem to figure it out. Can anyone help me please?
