# Loading External Swf into Movie Clip ... Preloader Problem

**URL:** https://forum.kirupa.com/t/loading-external-swf-into-movie-clip-preloader-problem/247210
**Category:** flash
**Created:** [December 19, 2007, 5:04pm UTC](https://forum.kirupa.com/t/loading-external-swf-into-movie-clip-preloader-problem/247210 "2007-12-19T17:04:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Bill12](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@Bill12](https://forum.kirupa.com/u/Bill12)
#### Post date: [December 19, 2007, 5:04pm UTC](https://forum.kirupa.com/t/loading-external-swf-into-movie-clip-preloader-problem/247210/1 "2007-12-19T17:04:41Z")

</div>

Hi,

i don`t know how i got back to the basics but i am having a problem with a preloader.  
What i do…  
I have an empty movie clip that loads an swf after a user make a button choise.  
So after the user choise i make the preloader.\_visible = true;  
and in the preloaders movie clip i have this code

onClipEvent (enterFrame) {  
**\_root.externals.stop();**  
mctotal = \_root.externals.getBytesTotal();  
mcloaded = \_root.externals.getBytesLoaded();  
percent = Math.round((mcloaded/mctotal)\*100);  
load = percent+"%";  
if (percent == 100) {  
**\_root.externals.play();**  
this.\_parent.\_visible = false;  
}  
}

The \*\*"\_root.externals" \*\*is the empty movie clip that loads the external swf.  
The problem is that when the preloader goes to 100% the external swf plays but plays in loop all the time.  
In the external swf i have the action stop(); in a frame but it doesn`t stop  
insted of stoping it replays all the time…

Any idea what can i do???
