# Loading external swf problems

**URL:** <https://forum.kirupa.com/t/loading-external-swf-problems/38292>\
**Category:** Uncategorized\
**Created:** [December 20, 2003, 8:38pm UTC](https://forum.kirupa.com/t/loading-external-swf-problems/38292 "2003-12-20T20:38:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eggplant\_wizard](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@eggplant\_wizard](https://forum.kirupa.com/u/eggplant_wizard)\
**Post date:** [December 20, 2003, 8:38pm UTC](https://forum.kirupa.com/t/loading-external-swf-problems/38292/1 "2003-12-20T20:38:04Z")

</div>

i have a main swf with navigation and a blank movie clip where i use

\_root.content.loadMovie(“whatever.swf”);

to load the main content into the blank movie clip(content), before in flash mx i would just add

on (release) {  
\_root.content.loadMovie(“whatever.swf”);

to a button to load the content of that button into the blank movieclip on the main swf. this is not working in mx 2004, i think it has something to do with the coded in my preloader, cause this is what i have for the preloader  
in frame 1  
bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_height = getPercent_100;  
this.loadText = Math.round(getPercent_100)+"%";  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}  
in frame 2  
this.gotoAndPlay(1);  
and when i click on the button that is suppose to load the swf into the blank movie it plays the preloader again eve though the code is on (release) {  
\_root.content.loadMovie(“whatever.swf”);. any help would be greatly appreciated. thanks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 25, 2003, 7:52pm UTC](https://forum.kirupa.com/t/loading-external-swf-problems/38292/2 "2003-12-25T19:52:52Z")

</div>

here is the link for the fla’s, the button that doesn’t work is the band button, instead of loading the external swf it goes back and plays the preloader. any help would be appreciated. thanks.

fla’s
