# External Swf problem

**URL:** <https://forum.kirupa.com/t/external-swf-problem/157915>\
**Category:** flash\
**Created:** [August 5, 2005, 3:54am UTC](https://forum.kirupa.com/t/external-swf-problem/157915 "2005-08-05T03:54:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SquishyB](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@SquishyB](https://forum.kirupa.com/u/SquishyB)\
**Post date:** [August 5, 2005, 3:54am UTC](https://forum.kirupa.com/t/external-swf-problem/157915/1 "2005-08-05T03:54:37Z")

</div>

here again with yet another problem…sorry if this is getting annoying 😑

well i have navagation, and a container. The container is where the .swf files load. The first one, named bars.swf loads automaticly, but i want the other ones to load when i click the button…which is ussally no problem. except for this time. The first one loads itself, works great, i click the button, the first one plays its outro, and then loads and plays again. It sits at its midframe, but if i click the button again, nothing will happen. Im pretty sure it has nothing to do with the swf’s cause i tried two of them and they both did the same thing. Im quite sure its got to do with scripting somewhere. Here is the code on the button.

[color=Red]  
on (release) {

if (\_root.currMovie == undefined) {

\_root.currMovie = “bars”;  
container.loadMovie(“bars.swf”);  
} else if (\_root.currMovie != “bars”) {  
if (container.\_currentframe \>= container.midframe) {

\_root.currMovie = “bars”;  
container.play();

}

}

}[/color]

and the code on timeline that automaticly loads the first swf

[color=Red]\_root.currMovie = “port\_open”;  
container.loadMovie(\_root.currMovie+".swf");[/color]

and the last peice of code at the last frame of the swf files

[color=Red]\_root.container.loadMovie(\_root.currMovie+".swf"); [/color]

Thankyou to anyone that can help  
…SquishyB
