# Help please on external swf

**URL:** <https://forum.kirupa.com/t/help-please-on-external-swf/224489>\
**Category:** Uncategorized\
**Created:** [May 2, 2007, 7:41pm UTC](https://forum.kirupa.com/t/help-please-on-external-swf/224489 "2007-05-02T19:41:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leadbelly](https://avatars.discourse-cdn.com/v4/letter/l/85f322/32.png) [@leadbelly](https://forum.kirupa.com/u/leadbelly)\
**Post date:** [May 2, 2007, 7:41pm UTC](https://forum.kirupa.com/t/help-please-on-external-swf/224489/1 "2007-05-02T19:41:19Z")

</div>

I posted earlier but am not having any luck. I am trying to load 2 external swf’s into mc’s container and container2 on \_root with their own buttons on \_root. The buttons load the swf’s into both the containers or just one, sometimes the wrong one. I think it is the \_root.currMovie that is clashing between the two containers, here is the code for the two sets of buttons:-

this.onRelease = function(){  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “weather”;  
\_root.container.loadMovie(“weather.swf”);  
} else if (\_root.currMovie != “weather”) {  
if (\_root.container.\_currentframe\>= \_root.container.midframe) {  
\_root.currMovie = “weather”;  
\_root.container.play();  
}  
}  
}

this.onRelease = function(){  
if (\_root.currMovie == undefined) {  
\_root.currMovie = “course”;  
\_root.container2.loadMovie(“course.swf”);  
} else if (\_root.currMovie != “course”) {  
if (\_root.container2.\_currentframe\>= \_root.container2.midframe) {  
\_root.currMovie = “course”;  
\_root.container2.play();  
}  
}  
}

This is probably easy as pie and I’m sorry to waste your time but i’m desperate to get this fixed, PLEASE HELP!
